0.1.5 ⢠Published 6 years ago
@adiatma2019/cli-dir-to-json v0.1.5
cli-dir-to-json
š CLI to convert directory to json file.
List Features
- Convert directory to JSON.
Install
- Install with yarn.
yarn add -D @adiatma2019/cli-dir-to-json
- Install with npm.
npm install --save-dev @adiatma2019/cli-dir-to-json
How to use?
- Create a folder
project
and sub directory name withfolder
.
./project
|-folder
|--hello.txt -> "caption=hello"
- Please type with
npx @adiatma2019/cli-dir-to-json folder output.json
Output.
// ./output.json
{
"folder": [
{
"text": {
"caption": "hello"
},
},
],
}
Thanks, Feel free to contribute!