{"name":"dir-glob","version":"2.2.1","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":"^0.25.0","del":"^3.0.0","make-dir":"^1.0.0","rimraf":"^2.5.0","xo":"^0.20.3"},"gitHead":"4fc6c6e4a821a64dfd46205bc6c665082e82b022","bugs":{"url":"https://github.com/kevva/dir-glob/issues"},"homepage":"https://github.com/kevva/dir-glob#readme","_id":"dir-glob@2.2.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"integrity":"sha512-UN6X6XwRjllabfRhBdkVSo63uurJ8nSvMGrwl94EYVz6g+exhTV+yVSYk5VC/xl3MBFBTtC0J20uFKce4Brrng==","shasum":"ce8413234ffe8452b76b7741c32f116cf2a7b1a7","tarball":"http://registry-npm.ywwl.com/dir-glob/download/dir-glob-2.2.1.tgz","fileCount":4,"unpackedSize":5238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNwK7CRA9TVsSAnZWagAAgecP/35S31VApQyCRqg2Z1YO\nCKN0o8+hb6jhh/jrrxvlvvXPgJHQriBBMwY+Zz0BdC7zY5TNbhiimudQQpo7\nzIryEAVqI2BZr0hEAThZk+wZCXqKDXrl8wJM5NHJuKnXWMDKMFW4kvFtqL+c\n5dOgfiyKhsrLGhnmH+nsoN81pbBZ4mkMMK0dIKG1PvOEfc+vObgNFp51aK2x\n4qaTHXLPCozHS0xqhwzSfBQHXzWiWvz+8dAFyx3zdi5RJ4383/PoGAGdS7P9\nuqM1jCDpcNjGO9g4ntKqqXfGrV4Fq2RGAVN69AxLh5t1AC73N3NR7DKkg1+c\nxfFRf6umwrJw320tz7jV1mpaoLU7b5MugSiKVXwtY/hc/elixXGYk/7RsHzg\nQCFZdT7KUSe0mGvG+e0eAWbFq2Avz2ms50NdgUepjSQL1dHJF1kFKtIbOSzd\npiqt1yGwd0RtKa+6dX/bZngE40vaheYEDF4n5s4dfFRy3KdvbOP+w6aAKzT9\nYRe/ASDZFtEIAXr7CYNPvE6+NwAUEOOOnjUkO1kodzo+qDXUf8B5H2R2dCKx\nRCpG4fJBZ+Z1dPLVWIZ7PWmR9wa6eeDgctKmLimF0fE1N5cBrntU8yJZ1S2+\nPe+giEmnllHg3AScKONjYRWzOCm5loABl0XJtDqfLdV2gInUTOrTbTe2SWvR\n4Q7t\r\n=EgIn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtaeiAkSFUf3YiP/I2KTXT1SimF4n9zHsdnoTi/VkDxAiEAicSg0RMKpZWm5NP9sE27mtp0UuV5RnxQ8rhKc8FZQH4="}],"size":2232,"noattachment":false,"key":"/dir-glob/-/dir-glob-2.2.1.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dir-glob_2.2.1_1547109050665_0.477537542935319"},"_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":1547109050803,"_cnpm_publish_time":1547109050803,"dist-tags":{"latest":"3.0.1"}}