{"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","tarball":"http://registry-npm.ywwl.com/dotfile-regex/download/dotfile-regex-1.0.1.tgz","integrity":"sha512-+406BTkcyLddIk8QGiIK7Oi9MLH2IeqvXDLqi7cJ0vJ6kic8jXWF+Sgoo2qbvjwzqwVnx8JhD7RylErX86pDYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDX4JOR6D4f7Sn2x3gg2nsNP09bdZnbzWj1i6yFgQ3KiAiEAnG9IskEBbyy4nn7yTIVAOtlvet+O0K343x7uDsf/M9s="}],"size":2612,"noattachment":false,"key":"/dotfile-regex/-/dotfile-regex-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotfile-regex-1.0.1.tgz_1496158224965_0.7299179341644049"},"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":1496158226013,"_cnpm_publish_time":1496158226013,"dist-tags":{"latest":"1.0.2"}}