ab-fs-matcher
v0.0.4
Published
Static file matcher that find files using anymatch pattern.
Downloads
19
Maintainers
Readme
AB FS Matcher
const abFSMatcher = require('ab-fs-matcher');
abFSMatcher.getPaths('**/*.txt', (err, fsPaths) => {
});
abFSMatcher.getPaths([
'**/*.html',
'**/js/*.js',
], (err, fsPaths) => {
if (err) {
console.error(`Cannot get file paths.`);
return;
}
console.log(`Multiple anymatch patterns.`, )
});
abFSMatcher.getPathsPrmise('best_*.jpg')
.then((fsPaths) => {
console.log('Using promise:', fsPaths);
})