tree2json

save directory structure to json file and viceversa

Usage no npm install needed!

<script type="module">
  import tree2json from 'https://cdn.skypack.dev/tree2json';
</script>

README

Another tree clone

npm version

Installation

$ npm install --save tree2json

Usage (Node.js)

const tree = require('tree2json').tree;
const myTree = new tree();
myTree.saveToFile('./testFolder');
myTree.writeStruct('./struct.json', './anotherTestFolder');

Contrib

It is a package created for the purpose of study. Feel free to participate and contribute!