{"_id":"gulp-choose-files","_rev":"4175232","name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files to pass through the stream.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2026-03-01T21:30:07.000Z","created":"2016-05-19T20:57:31.413Z","2.0.0":"2019-04-07T23:09:54.568Z","1.0.0":"2017-04-29T01:29:43.057Z","0.1.3":"2016-07-16T22:31:51.533Z","0.1.2":"2016-06-15T22:04:44.011Z","0.1.1":"2016-06-09T22:09:13.242Z","0.1.0":"2016-05-19T20:57:31.413Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/generate/gulp-choose-files.git"},"versions":{"2.0.0":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files to pass through the stream.","version":"2.0.0","homepage":"https://github.com/generate/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/generate/gulp-choose-files.git"},"bugs":{"url":"https://github.com/generate/gulp-choose-files/issues"},"license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"mocha"},"dependencies":{"enquirer":"^2.3.0","through2":"^3.0.1"},"devDependencies":{"gulp":"^4.0.0","gulp-format-md":"^2.0.0"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","pick","plugin","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-choose-file","gulp-condense","gulp-extname","gulp-htmlmin"]},"lint":{"reflinks":true}},"gitHead":"12fc05ba335391d832afc8dc9f39687417351236","_id":"gulp-choose-files@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"bd06eacb4a02cad966753ec39e7763521877f28c","size":3103,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-2.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-choose-files_2.0.0_1554678594383_0.8255940442854801"},"_hasShrinkwrap":false,"publish_time":1554678594568,"_cnpm_publish_time":1554678594568,"_cnpmcore_publish_time":"2021-12-17T03:41:27.892Z"},"1.0.0":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files to pass through the stream.","version":"1.0.0","homepage":"https://github.com/generate/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/generate/gulp-choose-files.git"},"bugs":{"url":"https://github.com/generate/gulp-choose-files/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","prompt-checkbox":"^0.5.0","through2":"^2.0.3"},"devDependencies":{"assemble":"^0.23.0","engine-handlebars":"^0.8.2","gulp":"^3.9.1","gulp-format-md":"^0.1.12"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","pick","plugin","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-choose-file","gulp-condense","gulp-extname","gulp-htmlmin"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"f8ad2ddc3e4470ea7d98e9e83b47f3bd81363e60","_id":"gulp-choose-files@1.0.0","_shasum":"580feacf0d47708a1e011e4663be2c2cc0619a5c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"580feacf0d47708a1e011e4663be2c2cc0619a5c","size":3222,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/gulp-choose-files-1.0.0.tgz_1493429382417_0.5146817122586071"},"directories":{},"publish_time":1493429383057,"_hasShrinkwrap":false,"_cnpm_publish_time":1493429383057,"_cnpmcore_publish_time":"2021-12-17T03:41:28.438Z"},"0.1.3":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files to pass through the stream.","version":"0.1.3","homepage":"https://github.com/generate/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/generate/gulp-choose-files.git"},"bugs":{"url":"https://github.com/generate/gulp-choose-files/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","question-cache":"^0.5.1","through2":"^2.0.1"},"devDependencies":{"assemble":"^0.16.1","engine-handlebars":"^0.8.0","gulp":"^3.9.1","gulp-format-md":"^0.1.9"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","pick","plugin","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-choose-file","gulp-condense","gulp-extname","gulp-htmlmin"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"723c2a392ec8cff0026b02db47dcff878b23c609","_id":"gulp-choose-files@0.1.3","_shasum":"86b15f0630073ab673d5725beec63eaa148550f9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"86b15f0630073ab673d5725beec63eaa148550f9","size":2914,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gulp-choose-files-0.1.3.tgz_1468708309563_0.9275902416557074"},"directories":{},"publish_time":1468708311533,"_hasShrinkwrap":false,"_cnpm_publish_time":1468708311533,"_cnpmcore_publish_time":"2021-12-17T03:41:28.988Z"},"0.1.2":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files to pass through the stream.","version":"0.1.2","homepage":"https://github.com/generate/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/generate/gulp-choose-files.git"},"bugs":{"url":"https://github.com/generate/gulp-choose-files/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","question-cache":"^0.4.0","through2":"^2.0.1"},"devDependencies":{"assemble":"^0.14.0","engine-handlebars":"^0.8.0","gulp":"^3.9.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","pick","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gulp-condense","gulp-extname","gulp-htmlmin"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"39c2957cd3a4ce06d816e548b74d8109b11c37ce","_id":"gulp-choose-files@0.1.2","_shasum":"555c617b46d28cac834590915a5da02213b4d24e","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"555c617b46d28cac834590915a5da02213b4d24e","size":1882,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-choose-files-0.1.2.tgz_1466028281480_0.01804653462022543"},"directories":{},"publish_time":1466028284011,"_hasShrinkwrap":false,"_cnpm_publish_time":1466028284011,"_cnpmcore_publish_time":"2021-12-17T03:41:29.221Z"},"0.1.1":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files pass through the stream.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gulp-choose-files.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-choose-files/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","question-cache":"^0.4.0","through2":"^2.0.1"},"devDependencies":{"assemble":"^0.11.0","engine-handlebars":"^0.8.0","gulp":"^3.9.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"description":"Other gulp plugins I maintain","list":["gulp-condense","gulp-extname","gulp-htmlmin"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"c8e1e19ee8637d1703da94fd0b0832e8c8cfcec4","_id":"gulp-choose-files@0.1.1","_shasum":"db7ef07a3f19424d5bed587538e854b02320e799","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"db7ef07a3f19424d5bed587538e854b02320e799","size":1817,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-choose-files-0.1.1.tgz_1465510150807_0.855573316803202"},"directories":{},"publish_time":1465510153242,"_hasShrinkwrap":false,"_cnpm_publish_time":1465510153242,"_cnpmcore_publish_time":"2021-12-17T03:41:29.447Z"},"0.1.0":{"name":"gulp-choose-files","description":"Gulp plugin that prompts you to choose the files pass through the stream.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/gulp-choose-files","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gulp-choose-files.git"},"bugs":{"url":"https://github.com/jonschlinkert/gulp-choose-files/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","question-cache":"^0.4.0","through2":"^2.0.1"},"devDependencies":{"assemble":"^0.11.0","engine-handlebars":"^0.8.0","gulp":"^3.9.1","gulp-format-md":"^0.1.9","mocha":"^2.4.5"},"keywords":["ask","choose","conditional","files","fs","gulp","gulpplugin","prompt","question","render","write"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"description":"Other gulp plugins I maintain","list":["gulp-htmlmin","gulp-condense","gulp-extname"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"b092129d8c1a7bbcc5a6afdc0c2224d7c8e77679","_id":"gulp-choose-files@0.1.0","_shasum":"cab4359aa17ab35f0850db61212ddb070daa19dc","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cab4359aa17ab35f0850db61212ddb070daa19dc","size":2577,"noattachment":false,"key":"/gulp-choose-files/-/gulp-choose-files-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-choose-files/download/gulp-choose-files-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-choose-files-0.1.0.tgz_1463691449008_0.8662903539370745"},"directories":{},"publish_time":1463691451413,"_hasShrinkwrap":false,"_cnpm_publish_time":1463691451413,"_cnpmcore_publish_time":"2021-12-17T03:41:29.665Z"}},"readme":"# gulp-choose-files [![NPM version](https://img.shields.io/npm/v/gulp-choose-files.svg?style=flat)](https://www.npmjs.com/package/gulp-choose-files) [![NPM monthly downloads](https://img.shields.io/npm/dm/gulp-choose-files.svg?style=flat)](https://npmjs.org/package/gulp-choose-files) [![NPM total downloads](https://img.shields.io/npm/dt/gulp-choose-files.svg?style=flat)](https://npmjs.org/package/gulp-choose-files)\n\n> Gulp plugin that prompts you to choose the files to pass through the stream.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save gulp-choose-files\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add gulp-choose-files\n```\n\n![gulp choose files example](example.gif)\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar choose = require('gulp-choose-files');\n\ngulp.task('default', function() {\n  return gulp.src('fixtures/*.*')\n    .pipe(choose())\n    .pipe(gulp.dest('actual'));\n});\n```\n\n## options.key\n\n**Type**: `string`\n\n**Default**: `relative`\n\nSpecify the [vinyl](https://github.com/gulpjs/vinyl) `file` property to use when displaying file names in the choices array.\n\n**Examples**\n\nGiven the file path `/dev/fixtures/foo.txt` (depending on cwd and `file.base`), here is what you would get:\n\n```js\nchoose({key: 'path'});\n//=> '/dev/fixtures/foo.txt'\nchoose({key: 'relative'});\n//=> 'fixtures/foo.txt'\nchoose({key: 'basename'});\n//=> 'foo.txt'\nchoose({key: 'stem'});\n//=> 'foo'\n```\n\n## options.choices\n\nIf you need to be able to automatically skip the prompt, you can pass a string or array with your \"choices\" to `options.choices`.\n\nThe following will only write `a.txt`:\n\n```js\ngulp.task('default', function() {\n  return gulp.src('fixtures/*.txt')\n    .pipe(choose({choices: ['a.txt']}))\n    .pipe(gulp.dest('actual'));\n});\n```\n\n## About\n\n### Related projects\n\n* [gulp-choose-file](https://www.npmjs.com/package/gulp-choose-file): Gulp plugin that prompts you to choose a file to pass through the stream. | [homepage](https://github.com/pointnet/gulp-choose-file \"Gulp plugin that prompts you to choose a file to pass through the stream.\")\n* [gulp-condense](https://www.npmjs.com/package/gulp-condense): Remove extra newlines in a string. | [homepage](https://github.com/jonschlinkert/gulp-condense \"Remove extra newlines in a string.\")\n* [gulp-extname](https://www.npmjs.com/package/gulp-extname): gulp plugin to dynamically rewrite dest extensions based on src extensions. | [homepage](https://github.com/jonschlinkert/gulp-extname \"gulp plugin to dynamically rewrite dest extensions based on src extensions.\")\n* [gulp-htmlmin](https://www.npmjs.com/package/gulp-htmlmin): gulp plugin to minify HTML. | [homepage](https://github.com/jonschlinkert/gulp-htmlmin#readme \"gulp plugin to minify HTML.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 28, 2017._","_attachments":{},"homepage":"https://github.com/generate/gulp-choose-files","bugs":{"url":"https://github.com/generate/gulp-choose-files/issues"},"license":"MIT"}