glob-set
Like node-glob, but provides results as a Set
instead of an Array
const globSet = ; async { const found = await ; //=> Set {'index.js', 'test.js'}};
Installation
npm install glob-set
API
const globSet = ;
globSet(pattern [, options])
pattern: string
(glob pattern)
options: Object
(glob
options)
Return: Glob
instance with the additional Promise
prototype methods
glob
Differences from - Produces the result as a
Set
instance, instead of an array. - The returned object has an additional methods
then
andcatch
, and will be resolved or rejected just likePromise
. - Doesn't support the third
cb
parameter. silent
option andstrict
option default totrue
.- Synchronous processing is not supported.
;
License
ISC License © 2017 Shinnosuke Watanabe