{"_id":"dotfile-regex","_rev":"35028","name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:07:29.000Z","created":"2015-01-22T04:44:07.527Z","1.0.2":"2017-05-30T15:32:46.552Z","1.0.1":"2017-05-30T15:30:26.013Z","1.0.0":"2017-05-30T15:05:30.482Z","0.1.2":"2015-01-22T04:48:14.739Z","0.1.0":"2015-01-22T04:44:07.527Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/dotfile-regex.git"},"versions":{"1.0.2":{"name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","version":"1.0.2","homepage":"https://github.com/regexhq/dotfile-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Haoliang Gao","url":"chuo.me"},{"name":"John Otander","url":"http://johnotander.com"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sindre Sorhus","url":"https://sindresorhus.com"}],"repository":{"type":"git","url":"git+https://github.com/regexhq/dotfile-regex.git"},"bugs":{"url":"https://github.com/regexhq/dotfile-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"keywords":["detect","dotfile","expression","find","match","regex","regexp","regular"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["dotdir-regex","is-dotdir","is-dotfile"]},"lint":{"reflinks":true}},"gitHead":"dc760507d190963547081bf695023fc0a3545f79","_id":"dotfile-regex@1.0.2","_shasum":"1f5db7457a35aed729927f41893b80f017493a5b","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1f5db7457a35aed729927f41893b80f017493a5b","size":2617,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dotfile-regex/download/dotfile-regex-1.0.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotfile-regex-1.0.2.tgz_1496158365386_0.4765009614638984"},"directories":{},"publish_time":1496158366552,"_hasShrinkwrap":false,"_cnpm_publish_time":1496158366552},"1.0.1":{"name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","version":"1.0.1","homepage":"https://github.com/regexps/dotfile-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Haoliang Gao","url":"chuo.me"},{"name":"John Otander","url":"http://johnotander.com"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sindre Sorhus","url":"https://sindresorhus.com"}],"repository":{"type":"git","url":"git+https://github.com/regexps/dotfile-regex.git"},"bugs":{"url":"https://github.com/regexps/dotfile-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"keywords":["detect","dotfile","expression","find","match","regex","regexp","regular"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["dotdir-regex","is-dotdir","is-dotfile"]},"lint":{"reflinks":true}},"gitHead":"1a0a236f2b91be42b7ca5a66ccb57f3acaa7d42e","_id":"dotfile-regex@1.0.1","_shasum":"35e11b69356a3e47608f29927e52752361ac2be7","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"35e11b69356a3e47608f29927e52752361ac2be7","size":2612,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dotfile-regex/download/dotfile-regex-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotfile-regex-1.0.1.tgz_1496158224965_0.7299179341644049"},"directories":{},"publish_time":1496158226013,"_hasShrinkwrap":false,"_cnpm_publish_time":1496158226013},"1.0.0":{"name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","version":"1.0.0","homepage":"https://github.com/regexps/dotfile-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Haoliang Gao","url":"chuo.me"},{"name":"John Otander","url":"http://johnotander.com"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"Sindre Sorhus","url":"https://sindresorhus.com"}],"repository":{"type":"git","url":"git+https://github.com/regexps/dotfile-regex.git"},"bugs":{"url":"https://github.com/regexps/dotfile-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"keywords":["detect","dotfile","expression","find","match","regex","regexp","regular"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["dotdir-regex","is-dotdir","is-dotfile"]},"lint":{"reflinks":true}},"gitHead":"3e91728a328359f1f04fe975756b7c90913dab74","_id":"dotfile-regex@1.0.0","_shasum":"31befd55ea62119e91afc4a01c488c20008dfa65","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"31befd55ea62119e91afc4a01c488c20008dfa65","size":2510,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dotfile-regex/download/dotfile-regex-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotfile-regex-1.0.0.tgz_1496156729537_0.351596727501601"},"directories":{},"publish_time":1496156730482,"_cnpm_publish_time":1496156730482,"_hasShrinkwrap":false},"0.1.2":{"name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","version":"0.1.2","homepage":"https://github.com/regexps/dotfile-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/regexps/dotfile-regex.git"},"bugs":{"url":"https://github.com/regexps/dotfile-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/dotfile-regex/blob/master/LICENSE-MIT"},"main":"index.js","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*"},"keywords":["detect","dotfile","expression","find","match","regex","regexp","regular"],"gitHead":"0657beea7c870d57f4fb900ef344e3360d67c2ab","_id":"dotfile-regex@0.1.2","_shasum":"257d0c9a506878ffa6379614c5a92e2426492d95","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"257d0c9a506878ffa6379614c5a92e2426492d95","size":1081,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dotfile-regex/download/dotfile-regex-0.1.2.tgz"},"directories":{},"publish_time":1421902094739,"_cnpm_publish_time":1421902094739,"_hasShrinkwrap":false},"0.1.0":{"name":"dotfile-regex","description":"Regular expresson for matching dotfiles.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/dotfile-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/regexps/dotfile-regex.git"},"bugs":{"url":"https://github.com/regexps/dotfile-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/dotfile-regex/blob/master/LICENSE-MIT"},"main":"index.js","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*"},"keywords":["detect","dotfile","expression","find","match","regex","regexp","regular"],"_id":"dotfile-regex@0.1.0","_shasum":"53c6051d0c608c5909ceff9a4d02c949497e6432","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"53c6051d0c608c5909ceff9a4d02c949497e6432","size":1087,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dotfile-regex/download/dotfile-regex-0.1.0.tgz"},"directories":{},"publish_time":1421901847527,"_cnpm_publish_time":1421901847527,"_hasShrinkwrap":false}},"readme":"# dotfile-regex [![NPM version](https://img.shields.io/npm/v/dotfile-regex.svg?style=flat)](https://www.npmjs.com/package/dotfile-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![NPM total downloads](https://img.shields.io/npm/dt/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/dotfile-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexhq/dotfile-regex)\n\n> Regular expresson for matching dotfiles.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save dotfile-regex\n```\n\n## Usage\n\nTo be considered a dot **file**:\n\n* the path must contain a dot that is at the beginning of the string or following a slash\n* the next character after the dot must not be another dot\n* one or more characters must follow the dot\n* a slash must not follow the dot\n\nTo check for dot **directories**, use [dotdir-regex](https://github.com/regexps/dotdir-regex) instead.\n\n```js\nvar dotfileRegex = require('dotfile-regex');\n\ndotfileRegex().test('a/b/c.js');\n//=> false\n\ndotfileRegex().test('./git');\n//=> false\n\ndotfileRegex().test('.git/foo');\n//=> false\n\ndotfileRegex().test('.gitignore');\n//=> true\n\ndotfileRegex().test('a/b/c/.gitignore');\n//=> true\n```\n\n## About\n\n### Related projects\n\n* [dotdir-regex](https://www.npmjs.com/package/dotdir-regex): Regex for matching dot-directories, like `.git/` | [homepage](https://github.com/regexps/dotdir-regex \"Regex for matching dot-directories, like `.git/`\")\n* [is-dotdir](https://www.npmjs.com/package/is-dotdir): Returns true if a path is a dot-directory. | [homepage](https://github.com/jonschlinkert/is-dotdir \"Returns true if a path is a dot-directory.\")\n* [is-dotfile](https://www.npmjs.com/package/is-dotfile): Return true if a file path is (or has) a dotfile. Returns false if the… [more](https://github.com/jonschlinkert/is-dotfile) | [homepage](https://github.com/jonschlinkert/is-dotfile \"Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 3 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [popomore](https://github.com/popomore) |\n| 1 | [johnotander](https://github.com/johnotander) |\n| 1 | [sindresorhus](https://github.com/sindresorhus) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 30, 2017._","_attachments":{},"homepage":"https://github.com/regexhq/dotfile-regex","bugs":{"url":"https://github.com/regexhq/dotfile-regex/issues"},"license":"MIT"}