find-files-by-regular

1.0.7 • Public • Published

find files by regular expression

/** if pattern is null or empty string, dirOnly will set to true by default */

function findFiles(startNode, pattern, ignoreCase=false, recursive=true, dirOnly=false)

npm install find-files-by-regular

const findfiles = require('find-files-by-regular');

let fileNamePattern = /.js$/;

let startFolder='.';

let files = findfiles(startFolder, fileNamePattern);

console.log(files);

Package Sidebar

Install

npm i find-files-by-regular

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

5.05 kB

Total Files

4

Last publish

Collaborators

  • creatxr