1.0.2 • Published 5 years ago

expandable v1.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
5 years ago

Expandable Build Status

UNIX shell style file globbing in that painlessly ports to Windows.

Cross-Platform Wildcard Patterns

Because one of the most common argument values is a file path, Arguable provides some helper functions for dealing with paths Windows. Arguable can resolve UNIX file paths on Windows as if they were invoked in a UNIX shell. Arguable will convert the slashes and expand wildcards. That is, it will treat */*.t as a file glob.

var arguable = require('arguable')
  , frobinator = require('frobinator')
  ;

arguable.glob(process.cwd(), [ 't/test/example.t', 't/test/*.t' ]).forEach(function (glob) {
  if (!glob.files.length) {
    throw new Error('file not found: ' + glob.pattern);
  } else {
    glob.files.forEach(function (file) {
      frobinator.frobinate(1, path.resolve(glob.base, file));
    });
  }
});
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.7

5 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

11 years ago