1.0.2 • Published 5 years ago

mkdirs-csv v1.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
5 years ago

mkdirs-csv

npm version

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 file
  • outDir: -o The output directory that will contains all your child directories from the CSV file
  • columns: -c The list of column name
  • separator: -s The separator between columns during the directory creation
  • delimiter: -d The CSV delimiter