{"id":13446740,"url":"https://github.com/geejs/gulp-tap","last_synced_at":"2025-04-04T09:08:44.155Z","repository":{"id":13176970,"uuid":"15860219","full_name":"geejs/gulp-tap","owner":"geejs","description":"Easily tap into a gulp pipeline without creating a plugin.","archived":false,"fork":false,"pushed_at":"2022-12-18T01:14:03.000Z","size":1254,"stargazers_count":153,"open_issues_count":13,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T06:12:38.747Z","etag":null,"topics":["gulp","gulp-plugin"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/geejs.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":"2014-01-13T06:39:02.000Z","updated_at":"2024-03-16T00:09:37.000Z","dependencies_parsed_at":"2023-01-13T18:30:29.854Z","dependency_job_id":null,"html_url":"https://github.com/geejs/gulp-tap","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geejs%2Fgulp-tap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geejs%2Fgulp-tap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geejs%2Fgulp-tap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geejs%2Fgulp-tap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geejs","download_url":"https://codeload.github.com/geejs/gulp-tap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149501,"owners_count":20891954,"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":["gulp","gulp-plugin"],"created_at":"2024-07-31T05:00:58.567Z","updated_at":"2025-04-04T09:08:44.135Z","avatar_url":"https://github.com/geejs.png","language":"CoffeeScript","readme":"# gulp-tap [![Build Status](https://travis-ci.org/geejs/gulp-tap.svg?branch=master)](https://travis-ci.org/geejs/gulp-tap) [![Coverage Status](https://coveralls.io/repos/github/geejs/gulp-tap/badge.svg?branch=master)](https://coveralls.io/github/geejs/gulp-tap?branch=master) [![Dependencies Status](https://david-dm.org/geejs/gulp-tap.svg)](https://david-dm.org/geejs/gulp-tap)\n\nEasily tap into a pipeline.\n\n## Install\n\n`npm install gulp-tap --save-dev`\n\n## Uses\n\nSome filters like `gulp-coffee` process all files. What if you want to process\nall JS and Coffee files in a single pipeline. Use `tap` to filter out `.coffee`\nfiles and process them through the `coffee` filter and let JavaScript files\npass through.\n\n```js\ngulp.src(\"src/**/*.{coffee,js}\")\n    .pipe(tap(function(file, t) {\n        if (path.extname(file.path) === '.coffee') {\n            return t.through(coffee, []);\n        }\n    }))\n    .pipe(gulp.dest('build'));\n```\n\nWhat if you want to change content like add a header? No need for a separate\nfilter, just change the content.\n\n```js\ntap(function(file) {\n    file.contents = Buffer.concat([\n        new Buffer('HEADER'),\n        file.contents\n    ]);\n});\n```\n\nIf you do not return a stream, tap forwards your changes.\n\n## Examples\n\nSee [Wiki](https://github.com/geejs/gulp-tap/wiki) for more examples.\n\n## License\n\nThe MIT License (MIT)\n","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeejs%2Fgulp-tap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeejs%2Fgulp-tap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeejs%2Fgulp-tap/lists"}