Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.04 KB

README.md

File metadata and controls

58 lines (44 loc) · 1.04 KB

xlsx-contacts-parser

Extract Basic Contact Lists from Excel Files

Installation

npm install xlsx-contacts-parser

Usage

const xlsxToJson = require('xlsx-to-json-parser');

const json = await xlsxToJson({
  path: 'path/to/excel/file.xlsx',
  password: 'SuperSecretPassword',
});

Options

  • path (string, required): Path to the Excel file.
  • password (string, optional): Password to open the Excel file.

Output

The output is a JSON object with the following structure:

{
  "path": "path/to/excel/file.xlsx",
  "lists": [
    {
      "name": "List 1",
      "contacts": [
        {
          "email": "joe.blow@nowhere.com",
          "name": "Joe Blow"
        },
        {
          "email": "mike.smith@nowhere.com",
          "name": "Mike Smith"
        }
      ]
    }
  ]
}

Contact Information

If you ever need a hand or have any questions, feel free to reach out.

Fred Lackey
https://fredlackey.com
fred.lackey@gmail.com