{"id":36814438,"url":"https://github.com/aircto/abspath-webpack-plugin","last_synced_at":"2026-01-12T13:52:09.115Z","repository":{"id":57172089,"uuid":"61027822","full_name":"aircto/abspath-webpack-plugin","owner":"aircto","description":"Custom absolute path(s) provider for webpack builds.","archived":false,"fork":false,"pushed_at":"2018-03-12T11:56:47.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T13:58:16.513Z","etag":null,"topics":["webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aircto.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":"2016-06-13T10:40:16.000Z","updated_at":"2018-03-12T10:58:10.000Z","dependencies_parsed_at":"2022-08-24T14:40:55.315Z","dependency_job_id":null,"html_url":"https://github.com/aircto/abspath-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aircto/abspath-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircto%2Fabspath-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircto%2Fabspath-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircto%2Fabspath-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircto%2Fabspath-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aircto","download_url":"https://codeload.github.com/aircto/abspath-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircto%2Fabspath-webpack-plugin/sbom","scorecard":{"id":173495,"data":{"date":"2025-08-11","repo":{"name":"github.com/aircto/abspath-webpack-plugin","commit":"44c233b5797606a95fa60897ef41add224642b9e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":5,"reason":"Found 1/2 approved changesets -- score normalized to 5","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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"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"}},{"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-16T17:08:45.555Z","repository_id":57172089,"created_at":"2025-08-16T17:08:45.555Z","updated_at":"2025-08-16T17:08:45.555Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["webpack"],"created_at":"2026-01-12T13:52:08.425Z","updated_at":"2026-01-12T13:52:09.105Z","avatar_url":"https://github.com/aircto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Absolute paths for [webpack](http://webpack.github.io/)\n`abspath-webpack-plugin` is a custom absolute path(s) provider for your webpack builds.\n\nIt helps you get rid of relative paths in your `require`s and `import`s.\n\n# Installation\nTo install the latest stable version:\n\n`npm install --save-dev abspath-webpack-plugin`\n\nThis assumes you are using [npm](https://www.npmjs.com/) as your package manager. The `abspath-webpack-plugin` requires [webpack](https://github.com/webpack/webpack)\nas [`peerDependency`](https://docs.npmjs.com/files/package.json#peerdependencies). Thus you are able to specify the required versions accurately.\n\n# Usage\n[Documentation: Using Plugins](https://webpack.github.io/docs/using-plugins.html)\n\n##### Syntax / Config\n```javascript\nnew AbsolutePathProviderPlugin(newRegEx, absolutePath);\n```\n`newRegEx` is the regular expression to be matched in the `require`d path and gets replaced with the `absolutePath` provided as the second argument.\n\nYou can also append path to the regex in your `require` statement. It automatically gets appended to the `absolutePath`.\n\n##### Apply via webpack config\nYou need to use `abspath-webpack-plugin` with other plugins in your webpack configuration.\n```javascript\nvar webpack = require('webpack');\nvar AbsolutePathProviderPlugin = require('abspath-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new AbsolutePathProviderPlugin(\n      /* regex */, /* absolute path to some dir */\n    )\n  ]\n}\n```\n\n# Example\nLet's see how can we use the plugin to simplify our `require` statements.\n\nHere is your simple app structure, let's say.\n```ruby\napp/\n+-- _webpack.config.js\n+-- scripts/\n    +-- accounts/\n        +-- signup/\n            +-- app.js\n+-- components/\n    +-- modal/\n        +-- index.js\n        +-- modal.js\n    +-- message/\n        +-- index.js\n        +-- message.js\n```\n\nNow you need to use your modal and message components in `scripts/accounts/signup/app.js`. The usual way would be\n\n###### app.js (earlier)\n```javascript\nvar modal = require('./../../../components/modal');\nvar message = require('./../../../components/message');\n```\n\nThat's not very efficient, right? Let's put `abspath-webpack-plugin` into play.\n\n###### webpack.config.js\n```javascript\nvar path = require('path');\nvar webpack = require('webpack');\nvar AbsolutePathProviderPlugin = require('abspath-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new AbsolutePathProviderPlugin(\n      /^@components/, path.resolve('./components')\n    )\n  ]\n}\n```\n\n###### app.js (after webpack config)\n```javascript\nvar modal = require('@components/modal');\nvar message = require('@components/message');\n```\n\nOr if you're using ES2015 syntax,\n\n```javascript\nimport modal from '@components/modal'\nimport message from '@components/message'\n```\n\n# Contributing\nWe are open to, and grateful for, any contributions made by the community. You can contribute by:\n\n* Reporting a bug.\n* Suggesting a feature.\n* Opening an issue to discuss improvements, theory or implementation.\n\nIf you are opening a PR, please attach the relevant issue with it. If it doesn't exist, please create one before you open a PR.\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircto%2Fabspath-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faircto%2Fabspath-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircto%2Fabspath-webpack-plugin/lists"}