{"id":20551417,"url":"https://github.com/generate/gulp-choose-files","last_synced_at":"2025-04-14T11:21:43.829Z","repository":{"id":57154770,"uuid":"59242220","full_name":"generate/gulp-choose-files","owner":"generate","description":"Gulp plugin that prompts you to choose the files pass through the stream.","archived":false,"fork":false,"pushed_at":"2017-04-29T01:30:04.000Z","size":841,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T22:18:33.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/generate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-19T20:57:35.000Z","updated_at":"2023-12-19T08:44:39.000Z","dependencies_parsed_at":"2022-09-07T00:41:11.501Z","dependency_job_id":null,"html_url":"https://github.com/generate/gulp-choose-files","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generate%2Fgulp-choose-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generate%2Fgulp-choose-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generate%2Fgulp-choose-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generate%2Fgulp-choose-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/generate","download_url":"https://codeload.github.com/generate/gulp-choose-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868885,"owners_count":21174776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:30:46.315Z","updated_at":"2025-04-14T11:21:43.807Z","avatar_url":"https://github.com/generate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u003e 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//=\u003e '/dev/fixtures/foo.txt'\nchoose({key: 'relative'});\n//=\u003e 'fixtures/foo.txt'\nchoose({key: 'basename'});\n//=\u003e 'foo.txt'\nchoose({key: 'stem'});\n//=\u003e '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 \u0026\u0026 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 \u0026\u0026 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._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenerate%2Fgulp-choose-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenerate%2Fgulp-choose-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenerate%2Fgulp-choose-files/lists"}