1.0.2 • Published 5 years ago
mkdirs-csv v1.0.2
mkdirs-csv
Create directories using a CSV file
Installation
npm install -g mkdirs-csv
Usage
a. Using the given file name's users.csv
Lastname;Firstname;age
Doe;John;25
Stewart;Jon;45
David;Larry;59
b. With the following command :
mkdirs-csv users.csv -c Firstname Lastname -o users -d "--"
c. Will generate directories :
users/John--Doe
users/Jon--Stewart
users/Larry--David
Options
filePath
: -f The default option or passing after the -f option. Is the file path of your CSV fileoutDir
: -o The output directory that will contains all your child directories from the CSV filecolumns
: -c The list of column nameseparator
: -s The separator between columns during the directory creationdelimiter
: -d The CSV delimiter