Gathering detailed insights and metrics for babel-plugin-transform-system-import-commonjs
Gathering detailed insights and metrics for babel-plugin-transform-system-import-commonjs
npm install babel-plugin-transform-system-import-commonjs
Typescript
Module System
Node Version
NPM Version
61
Supply Chain
81.4
Quality
73.4
Maintenance
25
Vulnerability
99.6
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
28,283
Last Day
1
Last Week
2
Last Month
14
Last Year
165
7 Commits
2 Forks
3 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.3
Package Id
babel-plugin-transform-system-import-commonjs@1.0.3
Size
2.21 kB
NPM Version
3.10.8
Node Version
6.9.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-81.8%
2
Compared to previous week
Last month
-12.5%
14
Compared to previous month
Last year
-32.4%
165
Compared to previous year
1
2
Babel plugin that transforms ES2015 System.import into CommonJS require.
** Since import() proposal was accepted, System.import
function now is obsolete and this plugin is not recommended to use in new projects. Please use import()
function with babel-plugin-transform-import-commonjs instead. **
This plugin transforms
1var myModule = "./path/to/myModule"; 2 3System.import(myModule).then(function (module) { 4 console.log(module); 5});
to
1var myModule = "./path/to/myModule"; 2 3new Promise(function(resolve) { 4 resolve(require(myModule)); 5}.bind(this)).then(function (module) { 6 console.log(module); 7});
You need support for Promise, use polyfill if needed.
1$ npm install babel-plugin-transform-system-import-commonjs
.babelrc
(Recommended).babelrc
1{ 2 "plugins": ["transform-system-import-commonjs"] 3}
1$ babel --plugins transform-system-import-commonjs script.js
1require("babel-core").transform("code", { 2 plugins: ["transform-system-import-commonjs"] 3});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More