{"name":"dir-glob","version":"2.2.0","description":"Convert directories to glob compatible strings","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/dir-glob.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"keywords":["convert","directory","extensions","files","glob"],"dependencies":{"path-type":"^3.0.0"},"devDependencies":{"ava":"*","del":"^3.0.0","make-dir":"^1.0.0","rimraf":"^2.5.0","xo":"*"},"gitHead":"84f4381fe041b6afd425e8d5c14c33809430d8f1","bugs":{"url":"https://github.com/kevva/dir-glob/issues"},"homepage":"https://github.com/kevva/dir-glob#readme","_id":"dir-glob@2.2.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"integrity":"sha512-YqrO+bduKFqPgspvpjDAaKk0qhmvY+SY7NjIRljCDAy6CX7Ft65irIduHbrYXhy+BxJnYKjWuREw6X42w9/+DQ==","shasum":"7c2986acade3beda2a037dcd9d20af7256cff6c5","tarball":"http://registry-npm.ywwl.com/dir-glob/download/dir-glob-2.2.0.tgz","fileCount":4,"unpackedSize":4881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNbmyCRA9TVsSAnZWagAAW1cP/3SWxh3k43ZAemjLs6MZ\noaGyeK1V+QtAZ15Xgn61XO8Kpsjx0Tz8uEQWDxGry4SI3QdvFoy3ThZmSOSt\n98RXk0YR10RONLz0aBFfLLNKV7hIf40q7X4S0ivn61EX1Fu4e69aQiL2laX4\nEVhn4Vn6u07pX9u8eXH1JVpjEHL9VhkwpQnzbDWLNtr9KoHiXFbC3Wej3j76\nNb/mU28hwfwus/mTRqX1UfsBdTVOYer3Hk+1a6eD1Nq47TrFE5vhe8FYhEdM\nbpbe9/6bblS+mRleXj1rjb4lMApfnA2rwXfhP3yQkAwCwIiFQFk4p7WmsWPl\njU8hsFPKgpN9+ArDpRy4bffHOWiXGJbNIeZ0yJQUw02jXLoQLL2aXxnH+BeN\nsDCOEHZuex2dea5RBPbba8VdaGSDXARQylsH0SgQkQSHnaJqYI1uT+BpDGYX\nq2qoiSfw7gbycdI9TlBfuja9mCTEYz+UunT0DNWVpdR+eRATWNXhU9gDqZgu\nxt0hg3dpias/3NK0ut42h/l4OK0w3RgUiB8D2rvI8oBhvToh/ime2kqIM8YK\n/BmhDEpLPes0julZ1Ycn5C5GcbLUniMFd8NgyigxitsK3/dVRR8SFeqLbGG0\niif5jwE/PNHiDxCdC1JVzs188WxEFQTDWLsMn2o67mTj4yNCj7wkHbMPFpQW\nOzyX\r\n=2F3F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0U1h8GphjBcLhsyD+4XmRr2qFA23AZgoDcX2KENlSsAiAHtCIkvtg0U2Co01iGTntYNsL3VkuYacDqx/2Y5zXU1g=="}],"size":2173,"noattachment":false,"key":"/dir-glob/-/dir-glob-2.2.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dir-glob_2.2.0_1547024817450_0.6502301281341873"},"_hasShrinkwrap":false,"readme":"# dir-glob [![Build Status](https://travis-ci.org/kevva/dir-glob.svg?branch=master)](https://travis-ci.org/kevva/dir-glob)\n\n> Convert directories to glob compatible strings\n\n\n## Install\n\n```\n$ npm install dir-glob\n```\n\n\n## Usage\n\n```js\nconst dirGlob = require('dir-glob');\n\n(async () => {\n\tconsole.log(await dirGlob(['index.js', 'test.js', 'fixtures']));\n\t//=> ['index.js', 'test.js', 'fixtures/**']\n\n\tconsole.log(await dirGlob(['index.js', 'inner_folder'], {cwd: 'fixtures'}));\n\t//=> ['index.js', 'inner_folder/**']\n\n\tconsole.log(await dirGlob(['lib/**', 'fixtures'], {\n\t\tfiles: ['test', 'unicorn']\n\t\textensions: ['js']\n\t}));\n\t//=> ['lib/**', 'fixtures/**/test.js', 'fixtures/**/unicorn.js']\n\n\tconsole.log(await dirGlob(['lib/**', 'fixtures'], {\n\t\tfiles: ['test', 'unicorn', '*.jsx'],\n\t\textensions: ['js', 'png']\n\t}));\n\t//=> ['lib/**', 'fixtures/**/test.{js,png}', 'fixtures/**/unicorn.{js,png}', 'fixtures/**/*.jsx']\n})();\n```\n\n\n## API\n\n### dirGlob(input, options?)\n\nReturns a `Promise<string[]>` with globs.\n\n### dirGlob.sync(input, options?)\n\nReturns a `string[]` with globs.\n\n#### input\n\nType: `string | string[]`\n\nPaths.\n\n#### options\n\nType: `object`\n\n##### extensions\n\nType: `string[]`\n\nAppend extensions to the end of your globs.\n\n##### files\n\nType: `string[]`\n\nOnly glob for certain files.\n\n##### cwd\n\nType: `string[]`\n\nTest in specific directory.\n","publish_time":1547024817690,"_cnpm_publish_time":1547024817690,"dist-tags":{"latest":"3.0.1"}}