contacts2js

0.4.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    1
  • 0.2.1
    1
  • 0.2.0
    0
  • 0.1.0
    1

Package Sidebar

Install

npm i contacts2js

Weekly Downloads

3

Version

0.4.0

License

GPL-3.0-or-later

Unpacked Size

90.7 kB

Total Files

12

Last publish

Collaborators

  • ktleary