npm

fs-tree-view

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fs-tree-view

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.8 kB

Total Files

5

Last publish

Collaborators

  • igor_stcherbina