Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "fs-expand", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "An extended fs glob", | ||
@@ -30,5 +30,5 @@ "main": "index.js", | ||
"async": "~0.2.10", | ||
"underscore": "~1.5.2", | ||
"underscore": "~1.6.0", | ||
"glob": "~3.2.8" | ||
} | ||
} |
@@ -1,1 +0,22 @@ | ||
# fs-expand [](http://badge.fury.io/js/fs-expand) [](https://travis-ci.org/kaelzhang/node-fs-expand) [](https://gemnasium.com/kaelzhang/node-fs-expand) | ||
# fs-expand [](http://badge.fury.io/js/fs-expand) [](https://travis-ci.org/kaelzhang/node-fs-expand) [](https://gemnasium.com/kaelzhang/node-fs-expand) | ||
fs-expand is a standalone module to fetch all file or directory paths that match the given globbing pattern(s), which is much like [`grunt.file.expand`](http://gruntjs.com/api/grunt.file#grunt.file.expand) | ||
## expand(pattern, [options], callback); | ||
- pattern `String|Array.<String>` accepts either a single glob pattern or an array of globbing patterns. Paths matching patterns that begin with ! will be excluded from the returned array. Patterns are processed in order, so inclusion and exclusion order is significant. | ||
- options `Object` supports all [glob](https://www.npmjs.org/package/glob) library options | ||
- callback `function(err, files)` the callback function. | ||
- err `Error` | ||
- files `Array.<String>` filenames found matching the pattern(s) | ||
### Example | ||
```js | ||
var expand = require('fs-expand'); | ||
expand('*.js', function(err, files){ | ||
console.log(files); // ['a.js', 'b.js'] | ||
}); | ||
``` |
6871
23
+ Addedunderscore@1.6.0(transitive)
- Removedunderscore@1.5.2(transitive)
Updatedunderscore@~1.6.0