Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
babel-preset-airbnb
Advanced tools
A babel preset for transforming your JavaScript for Airbnb.
Currently contains transforms for all standard syntax that is stage 4 (ES2017) or stage 3, except for the following:
regenerator-runtime
is too heavyweight for our use.async/await
: regenerator-runtime
is too heavyweight for our use, and async-to-promises is not yet complete enough to be safely used.SIMD
: this is a performance feature, so is pretty pointless to polyfill/transpile.We have also enabled object rest/spread, although it is only at stage 2. It will hopefully achieve stage 3 soon.
$ npm install --save-dev babel-preset-airbnb
.babelrc
(Recommended).babelrc
{
"presets": ["airbnb"]
}
$ babel script.js --presets airbnb
require("babel-core").transform("code", {
presets: ["airbnb"]
});
FAQs
A babel preset for transforming your JavaScript for Airbnb
The npm package babel-preset-airbnb receives a total of 38,063 weekly downloads. As such, babel-preset-airbnb popularity was classified as popular.
We found that babel-preset-airbnb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.