-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples.js
38 lines (28 loc) · 804 Bytes
/
examples.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict';
var Resolver = require('./');
var resolver = new Resolver();
// resolver.match('verb');
// resolver.contains('-verb');
// resolver.match('verb', function(basename, file) {
// return basename === 'verb';
// });
// resolver.on('file', function(file) {
// console.log(file)
// });
// resolver.on('match', function(file) {
// console.log(file);
// });
// resolver.on('verb', function(file) {
// console.log(file);
// });
// var files = resolver.resolve(function(basename, file) {
// return /^ansi/.test(file.name);
// });
resolver.match('verb', function(basename, file) {
return basename === 'verb';
});
console.log(resolver.resolve());
// resolver.match('udpate', function(basename, file) {
// return /update/.test(basename);
// });
// console.log(resolver.resolve());