{"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","tarball":"http://registry-npm.ywwl.com/dotfile-regex/download/dotfile-regex-0.1.2.tgz","integrity":"sha512-/aYlowqO6BnhSQC+snSjl7pdlDRngDVx69cr03Wv3oTJM4k+9L453pPsMeGRKwm0HmwNG+TncX2OZenSIF14iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICm5seHdqgLT8fnQZiBE7mhS8bnSxGppw6D0D4g07VHNAiEArw4mOh0bw54/cgaDayUtiDF67NA8GX4/KhChPE/KFZs="}],"size":1081,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-0.1.2.tgz"},"directories":{},"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._","publish_time":1421902094739,"_cnpm_publish_time":1421902094739,"dist-tags":{"latest":"1.0.2"}}