tree-json
convert a directory tree to json
Install
$ npm install --save tree-json
Usage
var treejson = require('tree-json');
console.log(JSON.stringify( treejson("./pancake"), null, 2) );
CLI
$ npm install -g tree-json
convert a directory tree to json
$ npm install --save tree-json
var treejson = require('tree-json');
console.log(JSON.stringify( treejson("./pancake"), null, 2) );
$ npm install -g tree-json
npm i @airplanegobrr/tree-json
2
0.0.1
MIT
1.53 kB
3