{"id":18687222,"url":"https://github.com/junosuarez/node-gulp-trailer","last_synced_at":"2025-11-08T01:30:31.325Z","repository":{"id":17549086,"uuid":"20351894","full_name":"junosuarez/node-gulp-trailer","owner":"junosuarez","description":"node module:  a file to a source stream after all others are done","archived":false,"fork":false,"pushed_at":"2014-05-31T08:13:40.000Z","size":128,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T16:46:19.956Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-31T08:11:05.000Z","updated_at":"2014-06-01T05:54:01.000Z","dependencies_parsed_at":"2022-08-25T16:41:31.446Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/node-gulp-trailer","commit_stats":null,"previous_names":["jden/node-gulp-trailer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fnode-gulp-trailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fnode-gulp-trailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fnode-gulp-trailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fnode-gulp-trailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/node-gulp-trailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239180501,"owners_count":19595640,"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-07T10:31:57.983Z","updated_at":"2025-11-08T01:30:31.266Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-trailer\nadd a file to a source stream after all others are done\n\n## usage\n```js\nvar gulpTrailer = require('gulp-trailer')\nvar gulp = require('gulp')\n\nvar files = []\n\ngulp.src('./**/*.js')\n  .on('data', function (x) {\n    files.push(x.path)\n  })\n  .pipe(trailer('./manifest.json', function (cb) {\n    cb(null, JSON.stringify(files))\n  }))\n  .pipe(gulp.dest('./dest'))\n```\nthis example keeps a list of all files written and then creates a `manifest.json` file with an array of all their paths\n\n\n## api\n\n### `trailer(filename: String, endFn : Function) =\u003e VinylThroughStream`\n\ncall `trailer` with a `filename` for the new file you want to add and an asynchronous `endFn` which will be used to return the contents of the file.\n\nYour `endFn` should call its callback with a `String`, a `Buffer` or a `Stream`.\n\n## installation\n\n    $ npm install gulp-trailer\n\n\n## running the tests\n\nFrom package root:\n\n    $ npm install\n    $ npm test\n\n\n## contributors\n\n- jden \u003cjason@denizac.org\u003e\n\n\n## license\n\nISC. (c) MMXIV jden \u003cjason@denizac.org\u003e. See LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fnode-gulp-trailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fnode-gulp-trailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fnode-gulp-trailer/lists"}