Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
babel-plugin-pipe-operator-curry
Advanced tools
This work is an alternative to babel-plugin-pipe-operator.
I choosed to implement pipe operator
with the currying way instead of putting flow as the first callable arguments.
import { mean, round } from 'lodash';
const array = [1, 2, 3, 4, 5];
array
| mean
| round
Turn into
import { mean, round } from 'lodash';
const array = [1, 2, 3, 4, 5];
round(mean(array))
If you want to use the original pipe operator, you can disable this plugin in current scope (and it children scopes) using "no pipe"
directive as described in the original one.
$ npm install --save-dev babel-plugin-pipe-operator-curry
.babelrc
(Recommended).babelrc
{
"plugins": ["pipe-operator-curry"]
}
$ babel --plugins pipe-operator-curry script.js
require("babel-core").transform("code", {
plugins: ["pipe-operator-curry"]
});
MIT
FAQs
Alternative to babel-plugin-pipe-operator
The npm package babel-plugin-pipe-operator-curry receives a total of 1 weekly downloads. As such, babel-plugin-pipe-operator-curry popularity was classified as not popular.
We found that babel-plugin-pipe-operator-curry 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.