package
Manipulate lists of files recursively in Node. Chainable API with a promise ending.
npm install shrubGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Manipulate lists of files recursively in Node.
npm install shrub --savevar Shrub = require('shrub');
var shrub = new Shrub('path/to/dir');
shrub.each(function (filePath, stats, next) {
// Do stuff
next();
}, function () {
// complete
});
shrub.filter(function (filePath, stats, next) {
// Callback a true statement to add this file
// to the filtered list
next(filePath === 'some/file/path');
}, function (files) {
// complete
});Asynchronous loop through file tree
Aynchronously filter the file tree