README
Excel to vCards converter
Command-line tool to easily convert Excel files (.csv, .xls, .xlsx) to vCards (.vcf)
Prerequisites
npm and Node.js are required to install and run the script.
Installation
npm install
Usage
node index [options]
Options:
-v, -V, --version output the version number
-i, --input <path> path to the .csv input file
-d, --delimiter [delimiter] delimiter used in the .csv input file
-o, --output [directory] output directory for the .vcf file (defaults to current directory)
-s, --start [row] 1-based index of the first data row (defaults to first row)
-e, --end [row] 1-based index of the last data row (defaults to last row with data)
-t, --telephone whether or not the telephone number should be formatted
-h, --help output usage information
Only the -i
or --input
option is required.
For minimum required configuration, the input .csv, .xls or .xlsx file should look as follows:
- To omit header rows, use the
-s
(or--start
) option. - To omit trailing rows, use the
-e
(or--end
) option.
For example: to omit the first row, use -s 2
or --start 2
to start with the second row.
Built with
- Node.js - JavaScript runtime
- node-csv-parse - .csv parser
- js-xlsx - .xls and .xlsx parser
License
This project is licensed under the GNU GPL v3 License - see the LICENSE file for details