{"name":"gitignore-to-glob","version":"0.2.1","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","files":["index.js","lib","dist/lib"],"devDependencies":{"babel-plugin-transform-es2015-arrow-functions":"6.5.2","babel-plugin-transform-es2015-block-scoped-functions":"6.5.0","babel-plugin-transform-es2015-block-scoping":"6.5.0","babel-plugin-transform-es2015-classes":"6.5.2","babel-plugin-transform-es2015-computed-properties":"6.5.2","babel-plugin-transform-es2015-destructuring":"6.5.0","babel-plugin-transform-es2015-for-of":"6.5.2","babel-plugin-transform-es2015-function-name":"6.5.0","babel-plugin-transform-es2015-literals":"6.5.0","babel-plugin-transform-es2015-object-super":"6.5.0","babel-plugin-transform-es2015-parameters":"6.5.0","babel-plugin-transform-es2015-shorthand-properties":"6.5.0","babel-plugin-transform-es2015-spread":"6.5.2","babel-plugin-transform-es2015-sticky-regex":"6.5.0","babel-plugin-transform-es2015-template-literals":"6.5.2","babel-plugin-transform-es2015-typeof-symbol":"6.5.0","babel-plugin-transform-es2015-unicode-regex":"6.5.0","babel-plugin-transform-exponentiation-operator":"6.5.0","babel-plugin-transform-regenerator":"6.5.2","eslint-config-mgol":"0.0.13","grunt":"0.4.5","grunt-babel":"6.0.0","grunt-cli":"0.1.13","grunt-contrib-clean":"1.0.0","grunt-contrib-copy":"1.0.0","grunt-eslint":"18.0.0","grunt-mocha-test":"0.12.7","load-grunt-tasks":"3.4.1","mocha":"2.4.5","time-grunt":"1.3.0"},"scripts":{"test":"grunt"},"engines":{"node":">=0.12.7 <0.13 || >=4.1.1"},"gitHead":"eb8179e018cfe85919477e81b86536686fd9cc18","_id":"gitignore-to-glob@0.2.1","_shasum":"f0ef484bf1430a2fcbdc732d249f30083ee2f8ef","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.8.0","_npmUser":{"name":"m_gol","email":"m.goleb@gmail.com"},"dist":{"shasum":"f0ef484bf1430a2fcbdc732d249f30083ee2f8ef","tarball":"http://registry-npm.ywwl.com/gitignore-to-glob/download/gitignore-to-glob-0.2.1.tgz","integrity":"sha512-8lCjcEhTgPL2KdCGwMxO6D81TUPo2QHB/iw76tWQ9CLuwM/ZINap9NRgnRW1CzpMUmo08MNrhvFnif+RwCNLww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsPzdWkob28A+tvdrzwkMuf0Txo+PwkViNnMUJFTwKNgIhAOF2N5asEYyH2PkJpa8xMZA+HwdKx0lg7/lGV57tG09Y"}],"size":6451,"noattachment":false,"key":"/gitignore-to-glob/-/gitignore-to-glob-0.2.1.tgz"},"maintainers":[{"name":"m_gol","email":"m.goleb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gitignore-to-glob-0.2.1.tgz_1457564796802_0.4869957936462015"},"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":1457564799089,"_cnpm_publish_time":1457564799089,"dist-tags":{"latest":"0.3.0"}}