1.0.0 • Published 4 years ago

node-walk-tree v1.0.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
4 years ago

Usage

You can use it with a simple constant:

const walkTree = require("files-tree");
const files = walkTree.get("./local/");

console.log(files);

Or also use with callback function:

const walkTree = require("files-tree");

walkTree.get("./local/", (files) => {
	console.log(files);
})

Result

The result of the execution returns an array with the path of all files

[
  './local/notes.txt',
  './local/utilites/codes/bar.js',
  './local/utilites/codes/baz.js',
  './local/utilites/codes/foo.js',
  './local/utilites/images/bird.png',
  './local/utilites/images/cat.png',
  './local/utilites/videos/bird-meme.mp4'
]

Node version

The version most compatible with our package is node 4.2 or higher!

Author

Marcos Dionisio
1.0.1

4 years ago

1.0.0

4 years ago