1.0.0 • Published 5 years ago

xlsx-to-directories-cli v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Xlsx to Direcotries CLI

Xlsx to directories cli is used to access the the functionality exposed by the xlsx-to-directory core module throught the command line.

It takes two parameters

file.xlsx: the absolute path of the file to parse.

out_dir: the absolute path in which the script would create the new directories. This is optional, if not specified defaults to the current directory.

Structure of the .xlsx file

A1B1
1Azienda1
2Azienda2
...Azienda...

There must be two columns. Except for the first row that is intended for column labels, the follwings rows must be of type number for the first column and type string for the second column.

How to use it

Install globally

npm i -g xlsx-to-directories

Run the script

xlsx-to-directories ~/Documents/myFile.xlsx ~/Documents/output