
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
@putout/plugin-merge-duplicate-functions
Advanced tools
🐊Putout plugin adds ability to merge duplicate functions
Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewhere in the scope from which you wish to call it.
(c) MDN
🐊Putout plugin adds ability to find and merge duplicate functions. Checkout in 🐊Putout Editor.
npm i @putout/plugin-merge-duplicate-functions
{
"rules": {
"merge-duplicate-functions": "on"
}
}
const isFn = (a) => typeof a === 'function';
const isFn1 = (a) => typeof a === 'function';
const isFn2 = (a) => typeof a === 'function';
isFn(1);
isFn1(2);
const isFn = (a) => typeof a === 'function';
isFn(1);
isFn(2);
MIT
FAQs
🐊Putout plugin adds ability to merge duplicate functions
The npm package @putout/plugin-merge-duplicate-functions receives a total of 4,422 weekly downloads. As such, @putout/plugin-merge-duplicate-functions popularity was classified as popular.
We found that @putout/plugin-merge-duplicate-functions demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).