{"id":19623587,"url":"https://github.com/cjroth/gulp-filelist","last_synced_at":"2025-04-28T04:31:52.965Z","repository":{"id":20262673,"uuid":"23535597","full_name":"cjroth/gulp-filelist","owner":"cjroth","description":"Output list of files in current stream to JSON file or custom format.","archived":false,"fork":false,"pushed_at":"2023-03-22T05:28:16.000Z","size":489,"stargazers_count":15,"open_issues_count":7,"forks_count":20,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T06:31:47.779Z","etag":null,"topics":["angular","angularjs","gulp","gulp-filelist","javascript","node","node-js","nodejs","npm","npm-module","npm-package","stream"],"latest_commit_sha":null,"homepage":"","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/cjroth.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-01T08:21:06.000Z","updated_at":"2023-01-21T22:24:36.000Z","dependencies_parsed_at":"2024-06-18T16:56:44.930Z","dependency_job_id":null,"html_url":"https://github.com/cjroth/gulp-filelist","commit_stats":{"total_commits":60,"total_committers":17,"mean_commits":"3.5294117647058822","dds":0.6,"last_synced_commit":"291470cf53d37737310d4b5dd3fabf4de13d0ab9"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjroth%2Fgulp-filelist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjroth%2Fgulp-filelist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjroth%2Fgulp-filelist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjroth%2Fgulp-filelist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjroth","download_url":"https://codeload.github.com/cjroth/gulp-filelist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251252211,"owners_count":21559749,"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":["angular","angularjs","gulp","gulp-filelist","javascript","node","node-js","nodejs","npm","npm-module","npm-package","stream"],"created_at":"2024-11-11T11:34:37.709Z","updated_at":"2025-04-28T04:31:52.539Z","avatar_url":"https://github.com/cjroth.png","language":"JavaScript","readme":"# gulp-filelist\n\n[![NPM Version](https://img.shields.io/npm/v/gulp-filelist.svg?style=flat)](https://www.npmjs.org/package/gulp-filelist)\n[![NPM Downloads](https://img.shields.io/npm/dm/gulp-filelist.svg?style=flat)](https://www.npmjs.org/package/gulp-filelist)\n[![Node.js Version](https://img.shields.io/badge/node.js-\u003e=_10-brightgreen.svg?style=flat)](http://nodejs.org/download/)\n[![Build Status](https://travis-ci.com/cjroth/gulp-filelist.svg?branch=main)](https://travis-ci.org/cjroth/gulp-filelist)\n\n#### Output list of files in current stream to JSON file or custom format.\n\nAdd to your Node.js dev dependencies:\n```bash\nnpm install --savedev gulp-filelist\n```\n\nAdd it to your gulp file:\n\n```js\ngulp\n  .src(['awesome.file', 'lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json'))\n  .pipe(gulp.dest('out'))\n```\n\nOutputs `out/filelist.json`:\n\n```json\n[\n  \"awesome.file\",\n  \"lame.file\"\n]\n```\n\n## Installation\n\n```bash\n$ npm install gulp-filelist\n```\n\n## Options\n\n#### Absolute Paths: `{ absolute: true }`\n\n```\ngulp\n  .src(['awesome.file', 'lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json', { absolute: true }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"/Users/chris/my-project/out/awesome.file\",\n  \"/Users/chris/my-project/out/lame.file\"\n]\n```\n\n#### Relative Paths: `{ relative: true }`\n\n```\ngulp\n  .src(['awesome.file', 'lame.file'])\n  .pipe(require('gulp-rename')(function(path) { path.dirname = 'foo' }))\n  .pipe(require('gulp-filelist')('filelist.json', { relative: true }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"foo/awesome.file\",\n  \"foo/lame.file\"\n]\n```\n\n#### Flattened Paths: `{ flatten: true }`\n\n```\ngulp\n  .src(['awesome.file', 'lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json', { flatten: true }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"awesome.file\",\n  \"lame.file\"\n]\n```\n\n#### Paths without Extensions: `{ removeExtensions: true }`\n\n```\ngulp\n  .src(['directory/awesome.file', 'directory/lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json', { removeExtensions: true }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"directory/awesome\",\n  \"directory/lame\"\n]\n```\n\n#### Output file with custom template: `{ destRowTemplate: \u003crowStringTemplate | function\u003e }`\n\nusage with string template\n```\ngulp\n  .src(['directory/awesome.file', 'directory/lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json', { destRowTemplate: \"/// \u003camd dependency='@filePath@'/\u003e\" }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"/// \u003camd dependency='directory/awesome'/\u003e\",\n  \"/// \u003camd dependency='directory/lame'/\u003e\"\n]\n```\n\nusage with formatter function\n\n```\nfunction formatter(filePath) {\n  return filePath.substring(filePath.lastIndexOf('/') + 1) + ': ' + filePath + '\\r\\n';\n}\n\ngulp\n  .src(['directory/awesome.file', 'directory/lame.file'])\n  .pipe(require('gulp-filelist')('filelist.json', { destRowTemplate: formatter }))\n  .pipe(gulp.dest('out'))\n```\nOutputs:\n```\n[\n  \"awesome: directory/awesome\",\n  \"lame: directory/lame\"\n]\n```\n## [MIT Licensed](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjroth%2Fgulp-filelist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjroth%2Fgulp-filelist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjroth%2Fgulp-filelist/lists"}