0.4.0 • Published 4 years ago

contacts2js v0.4.0

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

contacts2js

Convert CSV formatted Google contacts to an array of Contact with schema.org properties

Configuration

Heading and Contact class are configured to use commonly used field from Google CSV format.

Usage

  • pass in a Google contacts csv string
  • returns an array of Contacts
// contacts2js :: string -> [Contact]
function contacts2js(csvContacts = "") {
  const records = getRecords(csvContacts);
  return records.map((record) => createContact(record, HEADINGS));
}

Installation

  • npm install contacts2js

Test

  • npm test
0.4.0

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago