
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
babel-preset-es2015-node6
Advanced tools
Babel preset to make node@6 fully ES2015 compatible.
Node@6 has great ES2015 support, this module just adds missing features:
$ npm install --save-dev babel-preset-es2015-node6
Read "Configuring Babel 6" article for more information about babel@6 configuration.
NOTE If you're using object-rest
feature of stage-2
, use es2015-node6/object-rest
instead of es2015-node6
(It's added back destructuring
, parameters
), or down to ^0.1.4
. Waiting #2, T7086 fix.
.babelrc
(recommended).babelrc
{
"presets": ["es2015-node6"]
}
babel script.js --presets es2015-node6
require('babel-core').transform('code', {
presets: ['es2015-node6'],
})
loose
- Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).funcName
- If your node version is less than 6.5
, consider enabling function name support.{
presets: [
["es2015-node6", { "loose": true }]
]
}
FAQs
Babel preset to make node@6 fully ES2015 compatible
The npm package babel-preset-es2015-node6 receives a total of 1,118 weekly downloads. As such, babel-preset-es2015-node6 popularity was classified as popular.
We found that babel-preset-es2015-node6 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.