@spatocode/dirwalk
v0.0.1
Published
Directory tree traversal in nodejs
Downloads
2
Maintainers
Readme
dirwalk
Directory tree traversal in nodejs
Installation
$ npm install @spatocode/dirwalk
Usage
const dirwalk = require("@spatocode/dirwalk");
// Asynchronous function
dirwalk.walk("path/to/dir", (err, path, info) => {
if (err) {
throw err;
}
console.log(path, " : ", info.size);
});
// Synchronous function
var files = dirwalk.walkSync("path/to/dir");
console.log(files);
License
MIT License Copyright (c) 2019 Ekene Izukanne