fixes npm audit errors in parse-glob
This repository has been archived on 2021-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2015-02-07 16:18:41 -05:00
.editorconfig first commit 2015-02-07 16:02:39 -05:00
.gitattributes first commit 2015-02-07 16:02:39 -05:00
.gitignore first commit 2015-02-07 16:02:39 -05:00
.jshintrc first commit 2015-02-07 16:02:39 -05:00
.verb.md dotdirs description 2015-02-07 16:18:41 -05:00
index.js update tests, dotfile coverage 2015-02-07 16:16:15 -05:00
LICENSE first commit 2015-02-07 16:02:39 -05:00
package.json 1.0.0 2015-02-07 16:16:42 -05:00
README.md build the readme 2015-02-07 16:16:25 -05:00
test.js update tests, dotfile coverage 2015-02-07 16:16:15 -05:00

parse-glob NPM version

Parse a glob pattern into an object of path parts.

Install with npm

npm i parse-glob --save

Usage

var parse = require('parse-glob');

// this is a nonsensical pattern, but it shows what this lib does
parse('a/b/{c,.gitignore,{a,b}}/{a,b}/*.foo.js');

Returns:

{ pattern: 'a/b/{c,.gitignore,{a,b}}/{a,b}/*.foo.js',
  dirname: 'a/b/{c,.gitignore,{a,b}}/{a,b}/',
  filename: '*.foo.js',
  basename: '*',
  extname: '.foo.js',
  ext: 'js',

  // detects when a glob pattern intentionally 
  // specifies dotfiles
  dotfiles: false,
  dotdirs: false }

See the tests for hundreds of examples.

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb on February 07, 2015.