Skip to content

Commit

Permalink
Docs: General improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra authored and phated committed Feb 16, 2017
1 parent 846ff39 commit 03d6324
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ stream.on('data', function(file){
});
```

You can pass a single one of these (or an array with any combination). All given must match for the file to be returned.
You can pass a single one of these (or an array with any combination). All given must match for the file to be returned. Optional options argument is passed directly to [node-glob](https://github.com/isaacs/node-glob)

1. Function
#### Function

```javascript
var stream = gs.create(["./files/**/*.coffee", function(path){
return path.indexOf("something") === -1;
}]);
```

2. RegExp
#### RegExp

```javascript
var stream = gs.create(["./files/**/*.coffee", /stuff/]);
```

3. Glob
#### Glob

```javascript
var stream = gs.create(["./**/*.js", "!./node_modules/**/*.*"]);
Expand Down

0 comments on commit 03d6324

Please sign in to comment.