Node Mac Contacts Versions Save

Create, read, update, and delete contacts from users' contacts databases on macOS.

v1.7.1

9 months ago

What's Changed

  • fix: crash when accessing contact cache in e240ec2b2ebd7f5f5b6d245602f3e783d7e48dd5

Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.7.0...v1.7.1

v1.7.0

9 months ago

What's Changed

Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.6.0...v1.7.0

v1.5.0

2 years ago

What's Changed

Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.4.0...v1.5.0

v1.4.0

3 years ago
  • Added contacts.requestAccess() to explicitly request access to the CNContactStore via a dialog presented to the user.

v1.3.0

4 years ago
  • Fixes an issue with duplicate contacts across containers
  • Allows deleting contacts by identifier
  • Now returns the contact identifier with each contact.

v1.2.0

4 years ago

This release exposes an EventEmitter via contacts.listener, which can be used to listen to potential changes to the CNContactStore. When a contact is changed either with methods contained in this module, or manually by a user, the contact-changed event will be emitted.

v1.1.0

4 years ago

Adds the ability to request extra properties from contacts fetched via getContactsByName() or getAllContacts().

The following new properties are now optionally fetchable:

  • jobTitle String (optional) - The contact's job title.
  • departmentName String (optional) - The name of the department associated with the contact.
  • organizationName String (optional) - The name of the organization associated with the contact.
  • middleName String (optional) - The contact's middle name.
  • note String (optional) - The note associated with the contact.
  • contactImage Buffer (optional) - a Buffer representation of the contact's profile picture.
  • contactThumbnailImage Buffer (optional) - a Buffer representation of The thumbnail version of the contact’s profile picture.
  • socialProfiles Object[] (optional) - An array of labeled social profiles for a contact.
  • instantMessageAddresses Object[] (optional) - An array of labeled IM addresses for the contact.

v1.0.0

4 years ago
  • Fixed an issue where contacts would only be returned from the default contact container.
  • Added contact images as buffers to individual contact objects.

v0.2.0

4 years ago

Adds two new capabilities:

  • contacts.addNewContact(contact)
  • contacts.deleteContact(name)