{"id":16121785,"url":"https://github.com/puranjayjain/gulp-replace-frommap","last_synced_at":"2026-04-25T11:35:45.759Z","repository":{"id":57258729,"uuid":"76934523","full_name":"puranjayjain/gulp-replace-frommap","owner":"puranjayjain","description":"A tiny gulp plugin for replacing text using a object map between two regexes or strings","archived":false,"fork":false,"pushed_at":"2017-03-18T15:49:35.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T01:36:23.887Z","etag":null,"topics":["between","gulp","map","regexes","replace","string","tiny-gulp-plugin"],"latest_commit_sha":null,"homepage":"","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/puranjayjain.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":"2016-12-20T07:38:07.000Z","updated_at":"2020-04-10T11:14:08.000Z","dependencies_parsed_at":"2022-08-25T03:01:14.337Z","dependency_job_id":null,"html_url":"https://github.com/puranjayjain/gulp-replace-frommap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/puranjayjain/gulp-replace-frommap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puranjayjain%2Fgulp-replace-frommap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puranjayjain%2Fgulp-replace-frommap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puranjayjain%2Fgulp-replace-frommap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puranjayjain%2Fgulp-replace-frommap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puranjayjain","download_url":"https://codeload.github.com/puranjayjain/gulp-replace-frommap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puranjayjain%2Fgulp-replace-frommap/sbom","scorecard":{"id":749825,"data":{"date":"2025-08-11","repo":{"name":"github.com/puranjayjain/gulp-replace-frommap","commit":"def6b6345ebf5341e46ddfe05d7d09974180c718"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 1/12 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T19:57:49.890Z","repository_id":57258729,"created_at":"2025-08-22T19:57:49.890Z","updated_at":"2025-08-22T19:57:49.890Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["between","gulp","map","regexes","replace","string","tiny-gulp-plugin"],"created_at":"2024-10-09T21:07:55.249Z","updated_at":"2026-04-25T11:35:45.733Z","avatar_url":"https://github.com/puranjayjain.png","language":"JavaScript","readme":"# gulp-replace-frommap\nA tiny gulp plugin for replacing text using a object map between two regexes or strings\n\n# Usage example\n\n## gulpfile.js\n```\nvar gulp = require('gulp');\nvar gulpReplaceFrommap = require('gulp-replace-frommap');\n\ngulp.task('test', function () {\n  return gulp.src('src/index.html')\n    .pipe(gulpReplaceFrommap({\n      before: 'class=\"',\n      after: '\"',\n      map: './renaming.js'\n    }))\n    .pipe(gulp.dest('dist'));\n});\n```\n\n# Options\n\nIts an object to be passed along with the constructor of the plugin\n| Option     | Description                 | Type\n| --- | --- | --- |\n| before     | tag to start matching from  | `String or Regex`\n| after      | tag to end matching to      | `String or Regex`\n| map        | your map file relative to the current directory  | `Object`\n\n**NOTE** if you are using regex for before and after then wrap them in a group, e.g /class/ should be done as /(class)/\n\n```\n *  e.g\n *  \n *  before -\u003e class=\"\n *  after  -\u003e \"\n *  map    -\u003e './renaming.js' which contains something like module.exports = { someclass: 'a', ... };\n *  then\n *  it will replace all instances of goog with 2 which are between class=\" and \"\n```\n\n# TODO\n - [ ] streams support\n - [ ] tests\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuranjayjain%2Fgulp-replace-frommap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuranjayjain%2Fgulp-replace-frommap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuranjayjain%2Fgulp-replace-frommap/lists"}