-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathexamples.js
More file actions
15 lines (14 loc) · 634 Bytes
/
examples.js
File metadata and controls
15 lines (14 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var toAbsGlob = require('./');
console.log(toAbsGlob('a'));
console.log(toAbsGlob('a/*.js'));
console.log(toAbsGlob('a/*/'));
console.log(toAbsGlob('./fixtures/whatsgoingon/*/', {cwd: __dirname}));
console.log(toAbsGlob('!a/*.js'));
console.log(toAbsGlob('a/*.js', {cwd: 'foo'}));
console.log(toAbsGlob('!a/*.js', {cwd: 'foo'}));
console.log(toAbsGlob('/a/*.js', {root: 'baz'}));
console.log(toAbsGlob('/a/*.js', {root: '/'}));
console.log(toAbsGlob('!/a/*.js', {root: 'baz'}));
console.log(toAbsGlob('!/a/*.js', {root: '/'}));
console.log(toAbsGlob('/\\!/a/*.js', {root: '/'}));
console.log(toAbsGlob('/\\!\\a/*.js', {root: '/'}));