2.0.2 • Published 4 months ago
search-file-collection v2.0.2
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.