Gathering detailed insights and metrics for kn-babel
Gathering detailed insights and metrics for kn-babel
npm install kn-babel
Typescript
Module System
Node Version
NPM Version
JavaScript (93.67%)
HCL (6.33%)
Total Downloads
4,352
Last Day
1
Last Week
11
Last Month
19
Last Year
69
39 Commits
1 Forks
2 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3-develop
Package Id
kn-babel@0.0.3-develop
Size
2.08 kB
NPM Version
5.0.3
Node Version
8.0.0
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
450%
11
Compared to previous week
Last month
171.4%
19
Compared to previous month
Last year
-45.2%
69
Compared to previous year
Ready-to-go no-muss Babel configuration.
1npm install --save-dev kn-babel
This method is useful when you want to use Babel for development but don't want to wait for your code to compile. Typically only used in development or for "toy" packages, as there's a small (but noticeable) performance hit.
1// index.js 2require('kn-babel').register(); 3require('./some-file-that-needs-babel');
This method is useful when you need to generate Babel options to pass to a build tool such as Rollup or Webpack.
1// rollup.config.js 2import createBabelConfig from 'kn-babel'; 3import babel from 'rollup-plugin-babel'; 4 5export default { 6 entry: 'main.js', 7 dest: 'bundle.js', 8 format: 'cjs', 9 plugins: [ 10 babel(createBabelConfig({runtime: 'browser', modules: false})), 11 ], 12};
createBabelConfig()
accepts an object with the following properties, all of which are optional:
property | type | default | description |
---|---|---|---|
runtime | "node"|"browser" | "node" | Runtime environment for the produced code. |
env | "development"|"test"|"production" | "development" | Environment (typically NODE_ENV ) for the produced code. |
browsers | string[] | ['>1%', 'IE > 8', 'last 2 versions'] | Browserslist strings identifying supported browsers. |
useReactPreset | boolean | true | If false, babel-preset-react will be disabled. |
extraPlugins | Object[] | If supplied, will add passed plugins to plugins list. | |
modules | "amd"|"umd"|"systemjs"|"commonjs"|false | "commonjs" | Sets module transformation. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project is archived
Details
Reason
Found 2/26 approved changesets -- score normalized to 0
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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
101 existing vulnerabilities detected
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