{"name":"gitignore-to-glob","version":"0.1.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"],"main":"lib/gitignore-to-glob.js","repository":{"type":"git","url":"https://github.com/EE/gitignore-to-glob.git"},"bugs":{"url":"https://github.com/EE/gitignore-to-glob/issues"},"licenses":[{"type":"MIT"}],"files":["lib"],"dependencies":{"chalk":"^0.5.1","findup-sync":"^0.1.3","lodash":"^2.4.1"},"devDependencies":{"grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-clean":"0.6.0","grunt-eslint":"1.0.0","grunt-jscs":"0.6.2","grunt-mocha-test":"0.11.0","jscs-trailing-comma":"0.3.0","load-grunt-tasks":"0.6.0","time-grunt":"1.0.0"},"scripts":{"test":"grunt"},"engines":{"node":">=0.10.21"},"gitHead":"d99a937c9bd577f65fd22a1f33af319cce4d20cd","_id":"gitignore-to-glob@0.1.0","_shasum":"281c6327f91699902bf37d954826b848135a7aca","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"m_gol","email":"m.goleb@gmail.com"},"maintainers":[{"name":"m_gol","email":"m.goleb@gmail.com"}],"dist":{"shasum":"281c6327f91699902bf37d954826b848135a7aca","tarball":"http://registry-npm.ywwl.com/gitignore-to-glob/download/gitignore-to-glob-0.1.0.tgz","integrity":"sha512-u7K/+BfaggSmrDXzy2XQ0skGTIG42f2cdRNpyPnUNzF8JzUVugBgkchmDq+EzeWyU1MxsvxCEhr0xlgyBbybsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZLGGk0Qw1EZ8+gatgPfy1T8+W4WPD1h1SR6tGylOZfAiBOBjmBKOZ3izgBnsc2Orq9uywHVC4l5RC8RTmmOyLPsA=="}],"size":2325,"noattachment":false,"key":"/gitignore-to-glob/-/gitignore-to-glob-0.1.0.tgz"},"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":1408722484690,"_cnpm_publish_time":1408722484690,"dist-tags":{"latest":"0.3.0"}}