0.0.1 • Published 4 years ago
@spatocode/dirwalk v0.0.1
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