Neolithic Psychedelic Mushrooms

    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

    Install

    npm i contacts2js

    DownloadsWeekly Downloads

    6

    Version

    0.4.0

    License

    GPL-3.0-or-later

    Unpacked Size

    90.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • ktleary