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
npm install babel-features
var features = require('babel-features').test()
console.log(features)
// output on Node.js 4.1.1:
// { 'es3.memberExpressionLiterals': true,
// 'es3.propertyLiterals': true,
// 'es5.properties.mutators': true,
// 'es6.arrowFunctions': true,
// 'es6.blockScoping': true,
// 'es6.classes': true,
// 'es6.constants': true,
// 'es6.destructuring': false,
// 'es6.forOf': true,
// 'es6.modules': false,
// 'es6.parameters': false,
// 'es6.properties.computed': true,
// 'es6.properties.shorthand': true,
// 'es6.spread': false,
// 'es6.templateLiterals': true,
// 'es6.regex.unicode': false,
// 'es7.exponentiationOperator': false,
// 'es7.asyncFunctions': false,
// 'es7.objectRestSpread': false,
// 'es7.functionBind': false,
// 'es6.generators': false,
// 'es3.functionScope': true }
var babelOptions = require('babel-features').options()
require('babel/register')({
blacklist: babelOptions.blacklist
optional: babelOptions.optional
})
.babelrc
multiform.json
for https://github.com/callumlocke/multiformFAQs
Test babel features, can be used to generate babel options for specific compilation targets
The npm package babel-features receives a total of 5 weekly downloads. As such, babel-features popularity was classified as not popular.
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.