ab-fs-matcher

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i ab-fs-matcher

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

5.39 kB

Total Files

5

Last publish

Collaborators

  • sftd