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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    4
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i ab-fs-matcher

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

5.39 kB

Total Files

5

Last publish

Collaborators

  • sftd