0.1.1 • Published 7 years ago
@axetroy/walk v0.1.1
Walk the dir
Usage
npm install @axetroy/walk
const Walker = require('@axetroy/walk');
async function main() {
const walker = new Walker('./');
walker.on('file', function(filepath, stat) {
console.log(filepath);
});
walker.on('directory', function(filepath, stat) {
console.log(filepath);
});
walker.on('error', function(err) {
console.error('something go wrong ' + err.toString());
});
await walker.walk();
}
main()
.then(() => {
console.log('all done');
})
.catch(function(err) {
console.error(err);
});
Contributing
Contributors
Axetroy💻 🐛 🎨 |
---|