1.0.2 • Published 6 years ago
sfr-file-autoscan v1.0.2
Simple, Fast, Reliable(SFR)
sfr-file-autoscan
scan and count files based on file names. file names can use regular expressions
npm i sfr-file-autoscan
Usage
Returns an array of file names @path path, default __dirname @regex file name mast be regex, default * all of the files
const path = require('path');
const fileAutoscan = require('sfr-file-autoscan');
const fa = new fileAutoscan({
path: path.join(__dirname, 'router'),
regex: /\w+\.router\.js$/
});
fa.get();
Copyright (C) 2019 Jkin.feng. Licensed MIT. For more details, please see LICENSE.