@qingtingnpm/dir_to_json
v1.0.0
Published
Convert the directory structure to JSON,or Generate a directory tree as a string tree
Downloads
1
Readme
Convert the directory structure to JSON, or Generate a directory tree as a string tree.
example:
const dTj = require('dir_to_json');
console.log(JSON.stringify(dTj.dirToJson('.')));
console.log(dTj.generateTree('.'));