fs-readdir-cli
v1.0.8
Published
This package reads a directory that is passed via a "--dir" parameter and creates a file called "data.json" at the path passed by the "--wr" parameter. The content of the "data.json" file will be an array of objects with the url and name.
Downloads
5
Readme
fs-readdir-cli
This package reads a directory that is passed via a "--dir" parameter and creates a file called "data.json" at the path passed by the "--wr" parameter. The content of the "data.json" file will be an array of objects with the url and name.
install
With npm do:
npm i fs-readdir-cli
or for a global installation:
npm i -g fs-readdir-cli
usage
fs-readdir-cli
Mandatory parameters:
--dir -> path of the directory to read --wr -> path in which the result will be written
data.json file example
[{"url":"src/index.js","name":"index"}]