{"name":"gitignore-to-glob","version":"0.3.0","description":"Transforms .gitignore patterns to ones compatible with the glob package (used by Grunt & others)","homepage":"https://github.com/EE/gitignore-to-glob","author":{"name":"Michał Gołębiowski","email":"m.goleb@gmail.com"},"keywords":["gitignore","glob"],"repository":{"type":"git","url":"git+https://github.com/EE/gitignore-to-glob.git"},"bugs":{"url":"https://github.com/EE/gitignore-to-glob/issues"},"license":"MIT","main":"lib/gitignore-to-glob.js","files":["index.js","lib"],"devDependencies":{"eslint-config-mgol":"0.0.33","grunt":"1.0.1","grunt-cli":"1.2.0","grunt-contrib-clean":"1.0.0","grunt-eslint":"19.0.0","grunt-mocha-test":"0.13.2","load-grunt-tasks":"3.5.2","mocha":"3.1.2","time-grunt":"1.4.0"},"scripts":{"test":"grunt"},"engines":{"node":">=4.4 <5 || >=6.9"},"gitHead":"b935769c06222ca62f2998c3712e94c4181f4740","_id":"gitignore-to-glob@0.3.0","_shasum":"59f32ab3d9b66ce50299c3ed24cb0ef42a094ceb","_from":".","_npmVersion":"4.0.1","_nodeVersion":"7.0.0","_npmUser":{"name":"m_gol","email":"m.goleb@gmail.com"},"dist":{"shasum":"59f32ab3d9b66ce50299c3ed24cb0ef42a094ceb","tarball":"http://registry-npm.ywwl.com/gitignore-to-glob/download/gitignore-to-glob-0.3.0.tgz","integrity":"sha512-mk74BdnK7lIwDHnotHddx1wsjMOFIThpLY3cPNniJ/2fA/tlLzHnFxIdR+4sLOu5KGgQJdij4kjJ2RoUNnCNMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaXk4AoBb1agBV3Snn+2keYhL8kbhBOiwgmlxRk2FBYAiEAh9/ILslrTtiujfCtNmPrEQ192Lr8yE8/lCG5KaPt7GQ="}],"size":3103,"noattachment":false,"key":"/gitignore-to-glob/-/gitignore-to-glob-0.3.0.tgz"},"maintainers":[{"name":"m_gol","email":"m.goleb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gitignore-to-glob-0.3.0.tgz_1477520169428_0.5034194320905954"},"directories":{},"readme":"# gitignore-to-glob\n\n> Transforms .gitignore patterns to ones compatible with the glob package (used by Grunt & others)\n\n[![Build Status](https://travis-ci.org/EE/gitignore-to-glob.svg?branch=master)](https://travis-ci.org/EE/gitignore-to-glob)\n[![Build status](https://ci.appveyor.com/api/projects/status/oi2hv39087wp6c00/branch/master?svg=true)](https://ci.appveyor.com/project/mgol/gitignore-to-glob/branch/master)\n## Installation\n\nTo install the package and add it to your `package.json`, invoke:\n\n```shell\nnpm install gitignore-to-glob --save-dev\n```\n\n## Rationale\n\n`.gitignore` uses a different format than the `glob` package used, among others, by Grunt. Sometimes it's desirable\nto exclude files excluded by `.gitignore` in a glob pattern so a transformation function is needed.\n\n## Usage\n\nOnce the package has been installed, it may be used via:\n\n```js\nrequire('gitignore-to-glob')(pathToGitignore, dirsToCheck);\n```\nwhere `pathToGitignore` is `'.gitignore'` by default and `dirsToCheck` is an optional array of directories where we\nassume all files matched by the glob pattern exist. The parameter is optional but may be passed for performance reasons.\nThe rationale is that `.gitignore` patterns not starting with `/` are treated as if a glob pattern started with `**/`\nand that would be expensive as some directories like `node_modules` usually contain a lot of files so excluding them\nall manually would be slow.\n\n\n## Usage Examples\n\nThe most basic usage:\n```js\nrequire('gitignore-to-glob')();\n```\nThis will convert files from the main `'.gitignore'`.\n\n```js\nrequire('gitignore-to-glob')('app/.gitignore', ['app', 'test']);\n```\nThis will convert the `'app/.gitignore'` file but will omit patterns outside directories `app` and `test`.\n\n## Supported Node.js versions\nThis project aims to support all Node.js LTS versions in the \"active\" phase (see [LTS README](https://github.com/nodejs/LTS/blob/master/README.md) for more details) as well as the latest stable Node.js.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using `npm test`.\n\n## License\nCopyright (c) 2014 Laboratorium EE. Licensed under the MIT license.\n","publish_time":1477520171659,"_cnpm_publish_time":1477520171659,"dist-tags":{"latest":"0.3.0"}}