{"id":16327954,"url":"https://github.com/alexandremasy/gulp-output","last_synced_at":"2025-11-01T04:30:25.973Z","repository":{"id":15058602,"uuid":"17784799","full_name":"alexandremasy/gulp-output","owner":"alexandremasy","description":"Gulp output","archived":false,"fork":false,"pushed_at":"2014-03-16T18:33:08.000Z","size":124,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T23:26:40.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"strongloop/loopback-component-oauth2","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexandremasy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-15T20:30:27.000Z","updated_at":"2017-05-02T09:14:32.000Z","dependencies_parsed_at":"2022-08-19T03:21:15.763Z","dependency_job_id":null,"html_url":"https://github.com/alexandremasy/gulp-output","commit_stats":null,"previous_names":["ahsx/gulp-output"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fgulp-output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fgulp-output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fgulp-output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandremasy%2Fgulp-output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandremasy","download_url":"https://codeload.github.com/alexandremasy/gulp-output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239256865,"owners_count":19608578,"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-10-10T23:13:12.109Z","updated_at":"2025-11-01T04:30:25.942Z","avatar_url":"https://github.com/alexandremasy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-output [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image]\n\n\u003e The gulp plugin which output filenames.\n\nThis gulp plugins discover the files in the given path, and output them in the way you define.\n\n## Installation\n\n```shell\nnpm install gulp-output --save-dev\n```\n\n## Usage\n\n```\nvar output = require('gulp-output');\n\ngulp.src( 'httpdocs/libs/**/*.js' )\n    .pipe( output({\n    \tdestination: 'template/libs.html',\n    \troot:__dirname+'/httpdocs/'\n   \t}) );\n```\n\nYou also have the possibility to provile multiple path at one:\n\n```\nvar output = require('gulp-output');\n\ngulp.src( ['httpdocs/libs/**/*.js', 'httpdocs/otherlibs/*.js'] )\n    .pipe( output({\n    \tdestination: 'template/libs.html',\n    \troot:__dirname+'/httpdocs/'\n   \t}) );\n\n```\n## Usage\n\n```\n\u003cstream\u003e output(\u003coptions\u003e);\n```\n\n## Options\n\n**destination** `String`  \n\nWhere to output the result of the process\n\n**formator** `Function`\n\nThis function will be called for each file found in the stream. The default formator will output the path of each file on a separate line. If you want to provide a custom output, define your own formator.\nThe function will be called with the following parameters:\n\n- **path** `String` Path to the file\n- **filename** `String` Filename\n- **extension** `String` Extension of the file\n\nExample to ouput for [jade](http://jade-lang.com)\n\n```\nfunction jadeFormator( path, filename, extension )\n{\n\treturn 'script(src=\"'+path+'\")\\n';\n}\n\n```\n \n**root** `String`\n\nAll the retrieved file will have the full os path, this is often not convenient. By defining the root parameter, this root will be removed automatically from all the path. By default the root is equal to the directory of the `gulpfile.js`. \n\n[npm-url]: https://npmjs.org/package/gulp-output\n[npm-image]: https://badge.fury.io/js/gulp-output.png\n[travis-url]: https://travis-ci.org/ahsx/gulp-output\n[travis-image]: https://travis-ci.org/ahsx/gulp-output.png?branch=master\n[depstat-url]: https://david-dm.org/ahsx/gulp-output\n[depstat-image]: https://david-dm.org/ahsx/gulp-output.png\n[daviddm-url]: https://david-dm.org/ahsx/gulp-output.png?theme=shields.io\n[daviddm-image]: https://david-dm.org/ahsx/gulp-output","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandremasy%2Fgulp-output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandremasy%2Fgulp-output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandremasy%2Fgulp-output/lists"}