{"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":"3.0.0","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":"^4.0.0","pkg-config":"^1.1.0","run-parallel":"^1.1.2","uniq":"^1.0.1"},"gitHead":"9efff68bee5dddd4ed03295110281b52ff3b8ee9","_id":"deglob@3.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"integrity":"sha512-MAM3pIKDieKqbQ0B0KmWRh5HZ2YKKRo5r7vjMtL/aIk/mxHIv6HegkUPc/SU0KVT2zAo3TESnk2ch65QDUnr7w==","shasum":"603c898dfeb4ac4b6ed60903a9c6f3c07b6b7149","tarball":"http://registry-npm.ywwl.com/deglob/download/deglob-3.0.0.tgz","fileCount":4,"unpackedSize":7611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZOvBCRA9TVsSAnZWagAAde8P/28ad+KMytsba/SMoexf\nP7wsMaqduLAtGBPqRqHm9nFxfGcL4XHxbobIlpLg1ewjO8+2R7Ym2WKl+K5W\n1Gybg+2GSryMXCLCJY1Go78bZ6Xglky9/6X8avwosHsvTyYbfh9p1Wn9ROgX\no7FBffDaOMK6UztHqcrfvTOq5DqrPcZGwIJPg5EGWXc4Cizvd30mG8H0nJ3Y\nuegKW7dajgvL2ZhMlR8HROvYP17sCA2f6J+1obMO7Fx4aR2qVYNCM2zhP1sv\nNfmt2hyeXtQS8cQfQzacpEnCF7LZC49M2t91Do3P+sqR742JiK9ZR3IDEZfM\nwEtx/978hntVpOix+rjPbASIYAHIaUb/WRCbXvx0HAPA8q0CbvWlhK7oqre/\n2oWhD1/KFfk3W/+Oqsx5SaQOaBkpIunhAbZiidfL8Ma2UzAkqYl7hMz98VoR\ngpUvir1g+By3Qf58aPg8Qu4JNhajZ/gkLQLIUyf4dxf0Mm+VQrTGdHBJC+2j\ns1r0WI7sAmAN0gPNn0wjlqCudttO0xa6u66txy56RQhDC80metB0hUwIVx/7\nayhWiqDjFUZaFVqDPEsk4y+QnByi1DEl5tt6aOHQCtefrsogbRUbg7F55Aeg\n+o0qZt8W1X2/Yq2uTkoXlXfkiDWuEtgi/EVLuI+s3RUYVfWZOtsMnYJrXnZd\nVC2p\r\n=13ig\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGb7oFULPGkqTQEH7NlsS4Lr7U38DJOT1A4G64h76f5GAiEAkXdkPT0OJ9pOoPL465MdTzvDa5fVLHyRqiMdpLHZQf4="}],"size":3029,"noattachment":false,"key":"/deglob/-/deglob-3.0.0.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"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deglob_3.0.0_1533340609222_0.26397666202828507"},"_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":1533340609339,"_cnpm_publish_time":1533340609339,"dist-tags":{"latest":"4.0.1"}}