Create, read, update, and delete contacts from users' contacts databases on macOS.
Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.7.0...v1.7.1
Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.6.0...v1.7.0
getAllContacts
in https://github.com/codebytere/node-mac-contacts/commit/ea3a34d6231bdf3882b01f3a97f9dd20d4048b5c
Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.5.0...v1.6.0
Full Changelog: https://github.com/codebytere/node-mac-contacts/compare/v1.4.0...v1.5.0
contacts.requestAccess()
to explicitly request access to the CNContactStore via a dialog presented to the user.identifier
identifier
with each contact.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.
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.Adds two new capabilities:
contacts.addNewContact(contact)
contacts.deleteContact(name)