Name: node-addressbook
Owner: Wire Swiss GmbH
Description: Node.js module providing access to the macOS address book
Created: 2016-01-21 16:33:56.0
Updated: 2018-05-23 23:26:35.0
Pushed: 2017-02-01 16:43:13.0
Size: 24
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp/wire.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
Building for node is done with node-gyp:
node-gyp configure
node-gyp build
Building for electron seems to require the use of electron-rebuild:
electron-rebuild -v <electron version>
how to use the module:
t addressBook = require('node-addressbook');
ole.log("Number of Contacts: ", addressBook.getContactsCount());
ole.log("Me: ", addressBook.getMe());
ole.log("Contact [9]: ", addressBook.getContact(9));
ole.log("Start Importing Contacts");
essBook.getContacts(
progress => console.log("Progress: " + progress + "% "),
contacts => console.log("Contacts: ", contacts)