{"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":"4.0.1","author":{"name":"Dan Flettre","email":"fletd01@yahoo.com"},"bugs":{"url":"https://github.com/flet/deglob/issues"},"devDependencies":{"standard":"*","tap-spec":"^5.0.0","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":{"find-root":"^1.0.0","glob":"^7.0.5","ignore":"^5.0.0","pkg-config":"^1.1.0","run-parallel":"^1.1.2","uniq":"^1.0.1"},"gitHead":"d31479b0821c8e9689396fea3e582742cc2dde67","_id":"deglob@4.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.11.2","dist":{"integrity":"sha512-/g+RDZ7yf2HvoW+E5Cy+K94YhgcFgr6C8LuHZD1O5HoNPkf3KY6RfXJ0DBGlB/NkLi5gml+G9zqRzk9S0mHZCg==","shasum":"0685c6383992fd6009be10653a2b1116696fad55","tarball":"http://registry-npm.ywwl.com/deglob/download/deglob-4.0.1.tgz","fileCount":4,"unpackedSize":7861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYFSsCRA9TVsSAnZWagAA+VwP/0zcHAFpEjLlE0PUCwU3\nfsUFM2xoH33uDmpX9XfOXHImHl+9kqMyI9Uq1sO7govjGoFhM0hoVjCxvCv8\naHt8q6v1DfdKYlsd/+Kgu8HNJ3fzS22kayFhnyLk6kxGa/aW+2quFnQMJp3+\nc9labHHNFDYDJrNgYcAxdeKu7X8+dr3YJfWt65NxjJ5UInvPLqH1TFTQMFZf\nHSxXlsBFET/WagN1O+UZDQX1FYG3SkM040nnkANQ/no3OytzPsveSL9WSsko\nJg+ffku7tVQ4lNaLB04yYLsfkOnDFjMcfg/r/jVt8UkOCg8nrAVVHczI8YCH\nR1B+XGPCJS05yPS57c5kKhOWxj3XvFg6GVCdxwvAU2q1CMqoI+k2LJZ3spp3\niR3uuy6Bgufxz9Uk20zGMc7QhPtUOTWjolRPLhuLbRkT1/aPQ818kMujYZvw\n7dXJ8mT8ui2z0c7qskuDW3ZavC7e9dVKZFhwycMurD6Sg2YffveiWxbhdn2G\n3y3LjLWUxm30yiTtXcVWP6PYpn6iAXoDFYo3Eem8T91ZDJdbGHhmmTxmsvDp\nJHZqeSiA/7yDBgx0jnv0HrOoaNRJDDIEAkXP1clENlZgcrp9ebEhG5CVHTdg\nhhURFRFLySCCsbIL9FIxIcwCM3tgl/UepCB3RMC76PuSYq/vVcscEEhXYInP\nTTSY\r\n=Fu7S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD45qL68CwgCng2yMREXXNMEeUf56Wp3ORkWkn0XdgLNwIhANyWdi58hsAYh1ikPZxT+nDE5DdDlOWC/ktQTgc0x6Ln"}],"size":3100,"noattachment":false,"key":"/deglob/-/deglob-4.0.1.tgz"},"maintainers":[{"email":"npm@dcousens.com","name":"dcousens"},{"email":"dcposch@dcpos.ch","name":"dcposch"},{"email":"feross@feross.org","name":"feross"},{"email":"flettre@gmail.com","name":"flet"},{"email":"jprichardson@gmail.com","name":"jprichardson"},{"email":"mathiasbuus@gmail.com","name":"mafintosh"},{"email":"ogd@aoaioxxysz.net","name":"othiym23"}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deglob_4.0.1_1566594219916_0.6745300005964243"},"_hasShrinkwrap":false,"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":1566594220040,"_cnpm_publish_time":1566594220040,"dist-tags":{"latest":"4.0.1"}}