$ npm install file-set
Exports a contructor taking a list of file patterns as input, returning a file-set instance containing the expanded patterns split into separate lists of files, dirs and notExisting.
Example
const FileSet = require('file-set')
$ npm install file-set --save
> const FileSet = require('file-set');
> new FileSet([ '*', 'not/existing/*' ])
FileSet {
files: [ 'LICENSE', 'package.json', 'README.md' ],
dirs: [ 'jsdoc2md/', 'lib/', 'node_modules/', 'test/' ],
notExisting: [ 'not/existing/*' ] }
Exports a contructor taking a list of file patterns as input, returning a file-set instance containing the expanded patterns split into separate lists of files, dirs and notExisting.
Example
const FileSet = require('file-set')
Array.<string>Array.<string>Array.<string>Expands file patterns, returning the matched and unmatched files and directories
| Param | Type | Description |
|---|---|---|
| patternList | string | Array.<string> |
A pattern, or array of patterns to expand |
Array.<string>The existing files found
Kind: instance property of FileSet
Array.<string>The existing directories found
Kind: instance property of FileSet
Array.<string>Paths which were not found
Kind: instance property of FileSet
add file patterns to the set
Kind: instance method of FileSet
| Param | Type | Description |
|---|---|---|
| files | string | Array.<string> |
A pattern, or array of patterns to expand |
© 2014-16 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
© 2010 - cnpmjs.org x YWFE | Home | YWFE