
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
babel-plugin-transform-es2015-shorthand-properties
Advanced tools
Compile ES2015 shorthand properties to ES5
Compile ES2015 shorthand properties to ES5
In
var o = { a, b, c };
Out
var o = { a: a, b: b, c: c };
In
var cat = {
getName() {
return name;
}
};
Out
var cat = {
getName: function () {
return name;
}
};
npm install --save-dev babel-plugin-transform-es2015-shorthand-properties
.babelrc (Recommended).babelrc
{
"plugins": ["transform-es2015-shorthand-properties"]
}
babel --plugins transform-es2015-shorthand-properties script.js
require("babel-core").transform("code", {
plugins: ["transform-es2015-shorthand-properties"]
});
This package transforms ES6 destructuring assignments into ES5 code. While it focuses on destructuring rather than shorthand properties, it serves a similar purpose of converting ES6 syntax into a more widely supported ES5 syntax.
This package transforms ES6 parameter features like default parameters and rest parameters into ES5. It is similar in that it helps convert ES6 syntax to ES5, but it focuses on function parameters rather than object properties.
FAQs
Compile ES2015 shorthand properties to ES5
The npm package babel-plugin-transform-es2015-shorthand-properties receives a total of 1,222,534 weekly downloads. As such, babel-plugin-transform-es2015-shorthand-properties popularity was classified as popular.
We found that babel-plugin-transform-es2015-shorthand-properties demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.