Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
babel-features
Advanced tools
Test babel features, can be used to generate babel options for specific compilation targets
Test babel features, can be used to generate babel options for specific compilation targets
NOTE: The latest version (2.x) is for babel 6.x, for babel 5.x please use version 1.x
npm install babel-features@latest
var features = require('babel-features').test()
console.log(features)
// output on Node.js 5.0.0:
// { 'es3-member-expression-literals': true,
// 'es3-property-literals': true,
// 'es5-property-mutators': true,
// 'es2015-arrow-functions': true,
// 'es2015-block-scoping': true,
// 'es2015-classes': true,
// 'es2015-computed-properties': true,
// 'es2015-constants': true,
// 'es2015-destructuring': false,
// 'es2015-for-of': true,
// 'es2015-function-name': false,
// 'es2015-literals': true,
// 'es2015-object-super': true,
// 'es2015-parameters': false,
// 'es2015-shorthand-properties': true,
// 'es2015-spread': false,
// 'es2015-sticky-regex': false,
// 'es2015-template-literals': true,
// 'es2015-typeof-symbol': true,
// 'es2015-unicode-regex': false,
// 'es2015-modules': false,
// 'es2015-generators': false,
// 'es3-function-scope': true }
See https://github.com/ariporad/babel-preset-features
var babelOptions = require('babel-features').options()
require('babel-core/register')(babelOptions)
.babelrc
multiform.json
for https://github.com/callumlocke/multiformFAQs
Test babel features, can be used to generate babel options for specific compilation targets
We found that babel-features demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.