{"id":18389603,"url":"https://github.com/anseki/gulp-pre-proc","last_synced_at":"2026-01-20T12:33:01.449Z","repository":{"id":57258558,"uuid":"85203247","full_name":"anseki/gulp-pre-proc","owner":"anseki","description":"The super simple preprocessor for front-end development.","archived":false,"fork":false,"pushed_at":"2024-06-17T01:54:41.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T19:59:39.457Z","etag":null,"topics":["css","front-end","gulpplugin","html","javascript","preprocess","preprocessor"],"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/anseki.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":"2017-03-16T14:10:44.000Z","updated_at":"2024-06-17T01:54:10.000Z","dependencies_parsed_at":"2024-11-06T01:58:59.524Z","dependency_job_id":"a4fae63b-91a2-454b-9b4e-9148d6ebcb4b","html_url":"https://github.com/anseki/gulp-pre-proc","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"8e8164d289e7bf579b0d5873b3603b4a9ccf4266"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/anseki/gulp-pre-proc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fgulp-pre-proc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fgulp-pre-proc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fgulp-pre-proc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fgulp-pre-proc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anseki","download_url":"https://codeload.github.com/anseki/gulp-pre-proc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fgulp-pre-proc/sbom","scorecard":{"id":198000,"data":{"date":"2025-08-11","repo":{"name":"github.com/anseki/gulp-pre-proc","commit":"ac9d177a1995eea87d24f0335ec45c1631598ea2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T22:11:22.224Z","repository_id":57258558,"created_at":"2025-08-16T22:11:22.224Z","updated_at":"2025-08-16T22:11:22.224Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: 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":["css","front-end","gulpplugin","html","javascript","preprocess","preprocessor"],"created_at":"2024-11-06T01:43:56.542Z","updated_at":"2026-01-20T12:33:01.430Z","avatar_url":"https://github.com/anseki.png","language":"JavaScript","readme":"# gulp-pre-proc\n\n[![npm](https://img.shields.io/npm/v/gulp-pre-proc.svg)](https://www.npmjs.com/package/gulp-pre-proc) [![GitHub issues](https://img.shields.io/github/issues/anseki/gulp-pre-proc.svg)](https://github.com/anseki/gulp-pre-proc/issues) [![David](https://img.shields.io/david/anseki/gulp-pre-proc.svg)](package.json) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nThis [gulp](http://gulpjs.com/) plugin is wrapper of [preProc](https://github.com/anseki/pre-proc).\n\n* [Grunt](http://gruntjs.com/) plugin: [grunt-pre-proc](https://github.com/anseki/grunt-pre-proc)\n* [webpack](https://webpack.js.org/) loader: [pre-proc-loader](https://github.com/anseki/pre-proc-loader)\n\nThe super simple preprocessor for front-end development.  \nSee [preProc](https://github.com/anseki/pre-proc) for options and more information about preProc.\n\n## Getting Started\n\n```shell\nnpm install gulp-pre-proc --save-dev\n```\n\n## Usage\n\n`gulpfile.js`\n\n```js\nvar gulp = require('gulp'),\n  preProc = require('gulp-pre-proc');\n\ngulp.task('default', function() {\n  return gulp.src('./develop/**/*')\n    .pipe(preProc({\n        // Remove `DEBUG` contents from all files in `dir1` directory and all JS files.\n        removeTag: {tag: 'DEBUG', pathTest: ['/path/to/dir1', /\\.js$/]}\n      }))\n    .pipe(gulp.dest('./public_html/'));\n});\n```\n\n## Options\n\n### `removeTag`\n\nIf `removeTag` option is specified, call [`removeTag`](https://github.com/anseki/pre-proc#removetag) method with current content.\n\nYou can specify an object that has properties as arguments of the method.  \nFollowing properties are accepted:\n\n- `tag`\n- `pathTest`\n\nAlso, you can specify common values for the arguments into upper layer. That is, the `options.pathTest` is used when `options.removeTag.pathTest` is not specified.\n\nIf the `pathTest` is specified, current source file path is tested with the `pathTest`.\n\nFor example:\n\n```js\ngulp.task('default', function() {\n  return gulp.src('./develop/**/*')\n    .pipe(preProc({\n        tag: 'DEBUG',           // common\n        pathTest: '/path/to',   // common\n\n        removeTag: {},                            // tag: 'DEBUG', pathTest: '/path/to'\n        replaceTag: {tag: ['SPEC1', 'SPEC2']},    // tag: ['SPEC1', 'SPEC2'], pathTest: '/path/to'\n        pickTag: {}                               // tag: 'DEBUG', pathTest: '/path/to'\n      }))\n    .pipe(gulp.dest('./public_html/'));\n});\n```\n\n### `replaceTag`\n\nIf `replaceTag` option is specified, call [`replaceTag`](https://github.com/anseki/pre-proc#replacetag) method with current content.\n\nYou can specify arguments by the same way as the [`removeTag`](#removetag).  \nFollowing arguments are accepted:\n\n- `tag`\n- `pathTest`\n- `replacement` (As `options.replaceTag.replacement`, not `options.replacement`)\n\n### `pickTag`\n\nIf `pickTag` option is specified, call [`pickTag`](https://github.com/anseki/pre-proc#picktag) method with current content.\n\nYou can specify arguments by the same way as the [`removeTag`](#removetag).  \nFollowing arguments are accepted:\n\n- `tag`\n- `allowErrors` (As `options.pickTag.allowErrors`, not `options.allowErrors`)\n\nWhen the tag was not found, this method throws an error by default. If `true` is specified for `allowErrors`, it returns `null` (not a string) without error. It is useful for handling unknown source code. (You should check that by `file.isNull()`.)  \nAlso, you can specify options to call multiple methods, and other methods are not called when the tag was not found.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fgulp-pre-proc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanseki%2Fgulp-pre-proc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fgulp-pre-proc/lists"}