1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| var glob = require('../');
|
| var g = glob([
| 'files/**',
| '!files/x/**',
| 'files/x/z.txt'
| ], function(err, files) {
| console.log(err || files);
| });
|
| g.on('match', function(f) {
| console.log('glob match: %s', f);
| });
|
| g.on('end', function() {
| console.log('globbing complete');
| });
|
|