0.0.4 • Published 6 years ago

ab-fs-matcher v0.0.4

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

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);
    })