xlsx-to-directories-cli

Command line interface for the xlsx-to-directory core library

Usage no npm install needed!

<script type="module">
  import xlsxToDirectoriesCli from 'https://cdn.skypack.dev/xlsx-to-directories-cli';
</script>

README

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

|A1|B1| |-|-| |1|Azienda1| |2|Azienda2| |...|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