JSPM

dotfile-regex

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1374
  • Score
    100M100P100Q118817F
  • License

Regular expresson for matching dotfiles.

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 NPM version

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.