{"id":21616618,"url":"https://github.com/nesk/gulp-htmlprocessor","last_synced_at":"2026-05-02T20:38:03.302Z","repository":{"id":20515135,"uuid":"23793879","full_name":"nesk/gulp-htmlprocessor","owner":"nesk","description":"Process html files at build time to modify them depending on the release environment","archived":false,"fork":false,"pushed_at":"2014-12-05T19:40:28.000Z","size":188,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T08:31:58.361Z","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/nesk.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-09-08T14:27:06.000Z","updated_at":"2017-05-18T15:00:15.000Z","dependencies_parsed_at":"2022-08-05T08:16:04.332Z","dependency_job_id":null,"html_url":"https://github.com/nesk/gulp-htmlprocessor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nesk/gulp-htmlprocessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesk%2Fgulp-htmlprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesk%2Fgulp-htmlprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesk%2Fgulp-htmlprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesk%2Fgulp-htmlprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nesk","download_url":"https://codeload.github.com/nesk/gulp-htmlprocessor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesk%2Fgulp-htmlprocessor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-24T22:14:52.792Z","updated_at":"2026-05-02T20:37:58.285Z","avatar_url":"https://github.com/nesk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-htmlprocessor\n\n\u003e Process html files at build time to modify them depending on the release environment\n\nThis project is a [Gulp](http://gulpjs.com/) implementation of [node-htmlprocessor](https://github.com/dciccale/node-htmlprocessor), which is the standalone library __of the [grunt-processhtml](https://github.com/dciccale/grunt-processhtml) plugin__.\n\n## Status\n\nCurrently, as of v0.3.3 __every features__ of grunt-processhtml __are supported__.\n\n### Differences\n\nThe only difference between the Grunt plugin and this Gulp plugin is the environment option, it must be set manually due to the lack of target management in Gulp.\n\n## Usage\n\nBe sure to have the latest version of Gulp:\n\n```shell\nnpm install -g gulp\n```\n\nInstall the plugin with this command:\n\n```shell\nnpm install --save-dev gulp-htmlprocessor\n```\n\nThe options and the HTML syntax are listed [in the original documentation](https://github.com/dciccale/grunt-processhtml#readme).\n\nNow, you can process your HTML in your `gulpfile.js`:\n\n```js\nvar gulp = require('gulp'),\n    htmlprocessor = require('gulp-htmlprocessor');\n\nvar options = {\n    // Pass your options here\n};\n\ngulp.task('default', function() {\n    return gulp.src('src/*.html')\n        .pipe(htmlprocessor(options))\n        .pipe(gulp.dest('dist'));\n});\n```\n\n## Test\n\nTo run the tests, just use the following command:\n\n```shell\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesk%2Fgulp-htmlprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnesk%2Fgulp-htmlprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesk%2Fgulp-htmlprocessor/lists"}