{"id":15357165,"url":"https://github.com/chocolateboy/babel-plugin-source-map-support","last_synced_at":"2025-08-20T02:32:28.964Z","repository":{"id":37952518,"uuid":"42608882","full_name":"chocolateboy/babel-plugin-source-map-support","owner":"chocolateboy","description":"A Babel plugin which automatically makes stack traces source-map aware","archived":false,"fork":false,"pushed_at":"2023-01-08T22:15:51.000Z","size":552,"stargazers_count":45,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T11:42:33.112Z","etag":null,"topics":["babel","babel-plugin","node-package","npm-module","npm-package","plugin","source-map","source-maps","sourcemap","sourcemaps"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chocolateboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-16T19:32:37.000Z","updated_at":"2023-09-25T09:53:18.000Z","dependencies_parsed_at":"2023-02-08T07:45:53.638Z","dependency_job_id":null,"html_url":"https://github.com/chocolateboy/babel-plugin-source-map-support","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chocolateboy/babel-plugin-source-map-support","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolateboy%2Fbabel-plugin-source-map-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolateboy%2Fbabel-plugin-source-map-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolateboy%2Fbabel-plugin-source-map-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolateboy%2Fbabel-plugin-source-map-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chocolateboy","download_url":"https://codeload.github.com/chocolateboy/babel-plugin-source-map-support/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolateboy%2Fbabel-plugin-source-map-support/sbom","scorecard":{"id":278549,"data":{"date":"2025-08-11","repo":{"name":"github.com/chocolateboy/babel-plugin-source-map-support","commit":"18415b50c1e5ecdecdd732c6972870d17a148c11"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 0/26 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/chocolateboy/babel-plugin-source-map-support/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/chocolateboy/babel-plugin-source-map-support/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/chocolateboy/babel-plugin-source-map-support/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/chocolateboy/babel-plugin-source-map-support/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 third-party GitHubAction dependencies pinned"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: Artistic License 2.0: LICENSE.md: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 4 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":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-17T15:08:33.550Z","repository_id":37952518,"created_at":"2025-08-17T15:08:33.550Z","updated_at":"2025-08-17T15:08:33.550Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271254633,"owners_count":24727376,"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-08-20T02:00:09.606Z","response_time":69,"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","babel-plugin","node-package","npm-module","npm-package","plugin","source-map","source-maps","sourcemap","sourcemaps"],"created_at":"2024-10-01T12:33:38.166Z","updated_at":"2025-08-20T02:32:28.657Z","avatar_url":"https://github.com/chocolateboy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/chocolateboy/babel-plugin-source-map-support/workflows/test/badge.svg)](https://github.com/chocolateboy/babel-plugin-source-map-support/actions?query=workflow%3Atest)\n[![NPM Version](https://img.shields.io/npm/v/babel-plugin-source-map-support.svg)](https://www.npmjs.org/package/babel-plugin-source-map-support)\n\n\u003c!-- TOC --\u003e\n\n- [NAME](#name)\n- [INSTALL](#install)\n- [SYNOPSIS](#synopsis)\n- [DESCRIPTION](#description)\n- [DEVELOPMENT](#development)\n  - [NPM Scripts](#npm-scripts)\n- [COMPATIBILITY](#compatibility)\n- [SEE ALSO](#see-also)\n- [VERSION](#version)\n- [AUTHOR](#author)\n- [COPYRIGHT AND LICENSE](#copyright-and-license)\n\n\u003c!-- TOC END --\u003e\n\n# NAME\n\nbabel-plugin-source-map-support - a Babel plugin which automatically makes stack traces source-map aware\n\n# INSTALL\n\n    $ npm install source-map-support --save\n    $ npm install babel-plugin-source-map-support --save-dev\n\n# SYNOPSIS\n\n`$ cat test.js`\n\n```javascript\nimport foo from 'foo';\nimport bar from 'bar';\n\nfoo(bar);\n```\n\n`$ babel --plugins source-map-support test.js`\n\n```javascript\nimport 'source-map-support/register';\nimport foo from 'foo';\nimport bar from 'bar';\n\nfoo(bar);\n```\n\n# DESCRIPTION\n\nThis is a [Babel](https://babeljs.io/)\n[plugin](https://babeljs.io/docs/advanced/plugins/) which prepends the\nfollowing statement to source files:\n\n```javascript\nimport 'source-map-support/register';\n```\n\nIn conjunction with the\n[source-map-support](https://www.npmjs.com/package/source-map-support) module,\n**which must be installed separately**, this statement hooks into the v8\nstack-trace API to translate call sites in the transpiled code back to their\ncorresponding locations in the original code.\n\nNote: this only works in environments which support the v8 stack-trace API\n(e.g. Node.js and Chrome), though it's harmless in other environments.\n\nThe source-map-support module only needs to be registered in the top-level\nfile(s) of an application, but it no-ops if it has already been loaded, so\nthere's no harm in registering it in every file.\n\nYou probably don't want to use this plugin when compiling code for the web\nbecause you probably don't want to bundle source-maps and the\nsource-map-support module in minified code. An easy way to limit the plugin's\nscope to development/test builds is to use Babel's\n[`env` option](https://babeljs.io/docs/en/options#env), e.g.:\n\n```javascript\n{\n    env: {\n        development: {\n            sourceMaps: 'inline',\n            plugins: ['source-map-support', ...]\n        }\n    },\n\n    presets: [ ... ]\n}\n```\n\nNote that source-maps don't need to be inlined in each file. They can be\nexternalised by using the `{ sourceMaps: true }` option. This adds a link to\nthe bottom of each file which points to its generated source-map, e.g.:\n\n```javascript\n{\n    env: {\n        development: {\n            sourceMaps: true,\n            plugins: ['source-map-support', ...]\n        }\n    },\n}\n```\n\n```javascript\n// index.js footer:\n//# sourceMappingURL=index.js.map\n```\n\n# DEVELOPMENT\n\n\u003cdetails\u003e\n\n## NPM Scripts\n\nThe following NPM scripts are available:\n\n- build - compile the plugin and save it to the `dist` directory\n- build:doc - generate the README's TOC (table of contents)\n- clean - remove the `dist` directory and other build artifacts\n- rebuild - clean the build artifacts and recompile the code\n- test - rebuild the plugin and run the test suite\n- test:debug - run the `test` script in debug mode, which dumps each transformed test case\n- test:prod - run the test suite in production mode\n- test:run - run the test suite\n\n\u003c/details\u003e\n\n# COMPATIBILITY\n\n- Babel \u003e= 7\n- [Maintained Node.js versions](https://github.com/nodejs/Release#readme)\n\n# SEE ALSO\n\n- [babel](https://babeljs.io/)\n- [source-map-support](https://www.npmjs.com/package/source-map-support)\n\n# VERSION\n\n2.2.0\n\n# AUTHOR\n\n[chocolateboy](mailto:chocolate@cpan.org)\n\n# COPYRIGHT AND LICENSE\n\nCopyright © 2015-2022 by chocolateboy.\n\nThis module is free software; you can redistribute it and/or modify it under the\nterms of the [Artistic License 2.0](https://www.opensource.org/licenses/artistic-license-2.0.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocolateboy%2Fbabel-plugin-source-map-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocolateboy%2Fbabel-plugin-source-map-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocolateboy%2Fbabel-plugin-source-map-support/lists"}