search-file-collection
v2.0.2
Published
Traverse the collection of file names conforming to regular expressions in the specified directory
Downloads
5
Readme
Traverse the collection of file names conforming to regular expressions in the specified directory
Install
Install with npm:
npm i search-file-collection
Example
const {find} = require('search-file-collection');
const fileList = find();
console.log(fileList);
const {find} = require('search-file-collection');
const fileList = find({
path: 'file path',
regexp: /filename rules/
});
console.log(fileList);
License
Licensed under MIT.