{"name":"deglob","description":"Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `package.json`.","version":"1.0.2","author":{"name":"Dan Flettre","email":"fletd01@yahoo.com"},"bugs":{"url":"https://github.com/flet/deglob/issues"},"devDependencies":{"standard":"*","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/flet/deglob","keywords":["cli","command","deglob","files","glob","unglob","gitignore","ignore","file"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/flet/deglob.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"dezalgo":"^1.0.3","find-root":"^0.1.1","glob":"^5.0.13","ignore":"^2.2.15","pkg-config":"^1.1.0","run-parallel":"^1.1.2","uniq":"^1.0.1","xtend":"^4.0.0"},"gitHead":"849784e3740f3500249853a2cee4e83a32d02e0e","_id":"deglob@1.0.2","_shasum":"a75afdd2c072fdee0caf1a44464e363abf8df5fd","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"a75afdd2c072fdee0caf1a44464e363abf8df5fd","tarball":"http://registry-npm.ywwl.com/deglob/download/deglob-1.0.2.tgz","integrity":"sha512-kIDST8gwnKK+ho/rv0gFU2YD/YS79COw3I/0eTpxp6GMQMrHV7BZJ3AQ9lbUlIVqBX1NP1m0lOwgWCdYafd3vQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDu6p9XvFI9KrWB8khravRcgl4cwYJnbyI8zKg5CU0gYgIhAPiCQM2uwU87smONnOf+OehCXrN0EThFz00RCtRZ6qWJ"}],"size":5360,"noattachment":false,"key":"/deglob/-/deglob-1.0.2.tgz"},"maintainers":[{"name":"flet","email":"flettre@gmail.com"},{"name":"feross","email":"feross@feross.org"},{"name":"jprichardson","email":"jprichardson@gmail.com"},{"name":"dcposch","email":"dcposch@dcpos.ch"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"dcousens","email":"email@dcousens.com"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"}],"directories":{},"readme":"# deglob [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/standard/deglob/master.svg\n[travis-url]: https://travis-ci.org/standard/deglob\n[npm-image]: https://img.shields.io/npm/v/deglob.svg\n[npm-url]: https://npmjs.org/package/deglob\n[downloads-image]: https://img.shields.io/npm/dm/deglob.svg\n[downloads-url]: https://npmjs.org/package/deglob\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\nTake a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `package.json`.\n\nGiant swaths of this code were extracted from [standard](https://standardjs.com). It seems useful outside of that tool, so I've attempted to extract it! :)\n\n## Install\n\n```\nnpm install --save deglob\n```\n\n## Usage\n\n```js\nvar deglob = require('deglob')\n\ndeglob(['**/*.js'], function(err, files) {\n  files.forEach(function(file) {\n    console.log('found file ' + file)\n  })\n})\n\n// pass in some options to customize!\n\nvar path = require('path')\nvar opts = {\n  cwd: path.join(__dirname, 'someDir'),\n  useGitIgnore: false,\n  usePackageJson: false\n}\n\ndeglob(['**/*.js'], opts, function(err, files) {\n  files.forEach(function(file) {\n    console.log('found file ' + file)\n  })\n})\n```\n\n## Ignoring files in package.json\n`deglob` will look for a `package.json` file by default and use any ignore patterns defined.\n\nTo define patterns in package.json add somthing like this:\n```js\n\"config\": {\n  \"ignore\": ['**/*.bad']\n}\n```\nIf you do not fancy the `config` key, provide a different one using the `configKey` option.\n\n\n## Options\nOption         | Default       | Description\n-------------- | --------      | -------\nuseGitIgnore   | true          | Turn on/off allowing ignore patterns via `.gitignore`\nusePackageJson | true          | Turn on/off allowing ignore patterns via `package.json` config.\nconfigKey      | 'config'      | This is the parent key in `package.json` to look for the `ignore` attribute.\ngitIgnoreFile  | '.gitignore'  | Name of the `.gitignore` file look for (probably best to leave it default)\nignore         | []            | List of additional ignore patterns to use\ncwd            | process.cwd() | This is the working directory to start the deglobbing\n\n## Contributing\n\nContributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.\n\n## License\n\n[ISC](LICENSE.md)\n","publish_time":1447718435853,"_cnpm_publish_time":1447718435853,"dist-tags":{"latest":"4.0.1"}}