mkdirs-csv
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mkdirs-csv

Weekly Downloads

1

Version

1.0.2

License

BSD-3-Clause

Unpacked Size

26.3 kB

Total Files

21

Last publish

Collaborators

  • bbriatte