@enigmaoffline/node-file-tree
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Node File Tree

Simple file tree data structure coded for NodeJS

Install

Installing with npm npm i --save @enigmaoffline/node-file-tree

Usage

Importing

const FTree = require("github-fetch");

const ft = new FTree('./src');

ft.setIgnoreNodeModules(false);
ft.printTree();

ft.travel(
    (node, layer) => {
        // do something when file is reached
    },
    (node, layer) => {
        // do something when directory is reached
    }
);

Package Sidebar

Install

npm i @enigmaoffline/node-file-tree

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

25.8 kB

Total Files

16

Last publish

Collaborators

  • lochungtin