{"name":"gitignore-to-glob","version":"0.2.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","modules","dependencies"],"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","files":["lib"],"devDependencies":{"eslint-config-mgol":"0.0.10","grunt":"0.4.5","grunt-babel":"5.0.3","grunt-cli":"0.1.13","grunt-contrib-clean":"0.7.0","grunt-contrib-copy":"0.8.2","grunt-eslint":"17.3.1","grunt-mocha-test":"0.12.7","load-grunt-tasks":"3.4.0","mocha":"2.3.4","time-grunt":"1.3.0"},"scripts":{"test":"grunt"},"engines":{"node":">=0.12.7 <0.13 || >=4.1.1"},"gitHead":"1ed6b55ade4ebe6cd84cd05c8c2e06cf1a2f9aad","_id":"gitignore-to-glob@0.2.0","_shasum":"4d835ecc15291337b38864d5436738d581c5baf2","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.7.1","_npmUser":{"name":"m_gol","email":"m.goleb@gmail.com"},"dist":{"shasum":"4d835ecc15291337b38864d5436738d581c5baf2","tarball":"http://registry-npm.ywwl.com/gitignore-to-glob/download/gitignore-to-glob-0.2.0.tgz","integrity":"sha512-C9ofjvuAeMlCwBsnIzNBUh4yX0RICJopVYw0NThG0LV7UJ2vwj52v9k1m5OG86GcJNZDnmhakpH5GSXW9TVwPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICk7IlIkIzH2fwByQ8PKPytyoiF2+GZE4hS4XlrGheSGAiBAsZs/F/NcDm7T1g6eGSXCRmQ/nbEb7Nesw8e4TV2YcA=="}],"size":3141,"noattachment":false,"key":"/gitignore-to-glob/-/gitignore-to-glob-0.2.0.tgz"},"maintainers":[{"name":"m_gol","email":"m.goleb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/gitignore-to-glob-0.2.0.tgz_1457526778828_0.0346726612187922"},"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":1457526783227,"_cnpm_publish_time":1457526783227,"dist-tags":{"latest":"0.3.0"}}