Package Exports
- dotfile-regex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dotfile-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dotfile-regex 
Regular expresson for matching dotfiles.
Install with npm
npm i dotfile-regex --save
Usage
var dotfileRe = require('dotfile-regex');
var match = re.exec('a/b/c/d/.gitignore');
// match[0] => '/.gitignore'
// match[1] => '.gitignore'
dotfileRe().test('a/b/c.js');
//=> false
Run tests
Install dev dependencies:
node i -d && mocha
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 January 21, 2015.