1.0.0 • Published 6 years ago

fs-tree-view v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

fs-tree-view

Get structure directory.

Run example


node example.js

Code in example.js

const TreeView = require('./TreeView');
const treeView = new TreeView();

void async function () {
	await treeView.scan(__dirname);

	let content = treeView.toContent([
		{
			regExp : /example\.js/,
			text : "Example use"
		},
		{
			regExp : /TreeView\.js/,
			text : "Annotation class"
		},
		{
			regExp : /LICENSE/,
			text : "About license"
		},
	]);

	console.log(content);
}();

Result


Root folder
├── LICENSE  -- "About license"
├── TreeView.js  -- "Annotation class"
└── example.js  -- "Example use"

Authors and developers

ONLY Igor Stcherbina

License

MIT