{"id":15193922,"url":"https://github.com/cvgellhorn/path-replace-loader","last_synced_at":"2025-10-02T08:31:20.255Z","repository":{"id":57320704,"uuid":"55867788","full_name":"cvgellhorn/path-replace-loader","owner":"cvgellhorn","description":"Path replace loader for webpack","archived":true,"fork":false,"pushed_at":"2017-09-08T14:51:50.000Z","size":8,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T17:02:14.731Z","etag":null,"topics":["babel","loader","path","replace","webpack","webpack2","webpack3"],"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/cvgellhorn.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-04-09T21:29:32.000Z","updated_at":"2024-07-04T09:39:09.000Z","dependencies_parsed_at":"2022-08-25T20:10:50.543Z","dependency_job_id":null,"html_url":"https://github.com/cvgellhorn/path-replace-loader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cvgellhorn/path-replace-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvgellhorn%2Fpath-replace-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvgellhorn%2Fpath-replace-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvgellhorn%2Fpath-replace-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvgellhorn%2Fpath-replace-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvgellhorn","download_url":"https://codeload.github.com/cvgellhorn/path-replace-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvgellhorn%2Fpath-replace-loader/sbom","scorecard":{"id":313397,"data":{"date":"2025-08-11","repo":{"name":"github.com/cvgellhorn/path-replace-loader","commit":"4fbe3caf886b5beb3293d3acaf1fde2e3262a23c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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"}}]},"last_synced_at":"2025-08-17T23:37:34.153Z","repository_id":57320704,"created_at":"2025-08-17T23:37:34.154Z","updated_at":"2025-08-17T23:37:34.154Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277315116,"owners_count":25797567,"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","status":"online","status_checked_at":"2025-09-27T02:00:08.978Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["babel","loader","path","replace","webpack","webpack2","webpack3"],"created_at":"2024-09-27T22:08:09.646Z","updated_at":"2025-10-02T08:31:19.994Z","avatar_url":"https://github.com/cvgellhorn.png","language":"JavaScript","readme":"# path-replace-loader for webpack\n\nPath replace loader for [webpack](https://webpack.js.org/). Replace a given base path with another path for dynamic module loading. Great for large applications with locally overridable modules.\n\n## Installation\n\n`$ npm install path-replace-loader`\n\n## Usage\n\n[Read more about using loaders](https://webpack.js.org/configuration/module/#module-rules)\n\n#### Configuration\n\n- \u003cb\u003epath:\u003c/b\u003e Absolute original path to replace, e.g. __dirname/app/core\n- \u003cb\u003ereplacePath:\u003c/b\u003e Absolute replacement path, e.g. __dirname/app/local\n\n#### webpack config\n\n``` js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n          test: /\\.js$/,\n          loader: 'path-replace-loader',\n          exclude: /(node_modules)/,\n          options: {\n              path: 'ORIGINAL_PATH',\n              replacePath: 'REPLACE_PATH'\n          }\n      }\n    ]\n  }\n};\n```\n\n#### Example\n\nLoader tries to load from local directory if file exists app/\u003cb\u003elocal\u003c/b\u003e/modules/auth\n\n``` js\nconst authModule = require('app/core/modules/auth');\n```\n\n#### Babel + webpack\n\nMake sure to include this in your .babelrc, if you want to use Babel with webpack\n``` js\n{\n    \"presets\": [\n        [\"es2015\", { \"modules\": false }]\n    ]\n}\n```\n\n\n## Release History\n\n- 2.0.0 - Bump packages and add webpack 3 support\n- 1.0.0 - Add webpack 2 support\n- 0.2.2 - Improve example\n- 0.2.1 - Update README\n- 0.2.0 - Use dependency to introduce file to webpack in order to make them watchable\n- 0.1.0 - Initial release\n\n### [MIT License](http://www.opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvgellhorn%2Fpath-replace-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvgellhorn%2Fpath-replace-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvgellhorn%2Fpath-replace-loader/lists"}