globy
v0.1.8
Published
New glob library
Downloads
1,132
Readme
globy
New glob library for Node.js. Search fast and exactly.
Installation
Requires (optional)
- [node-gyp] (https://github.com/TooTallNate/node-gyp)
Install
$ npm install globy
Usage
var globy = require("globy");
var options = {
"dot": true,
"nocase": false,
"nofollow": false,
};
var files = globy.glob("**/*.js", options);
API
globy.glob(pattern, [options])
Glob search files.
- returns {String[]}
pattern
{String} filepath patternoptions
{Object=} search optionsdot
{Boolean} (default: false) if true,*
and**
matchs dotfilesnocase
{Boolean} (default: false) if true, perform case-insensitive matchnofollow
{Boolean} (default: false) if true,**
does not search symbolic link directorycwd
{String} (default: null) Change current working directory