Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
babel-plugin-ramda
Advanced tools
This plugin is a transform to remove unused ramda dependencies, without forcing the user to cherry pick methods manually. This lets you use ramda naturally (aka as documented) without worrying about bundling parts you're not using.
See also babel-plugin-lodash
.
Converts
import R, {map} from 'ramda';
map(R.add(1), [1, 2, 3]);
Roughly to
import add from 'ramda/src/add';
import map from 'ramda/src/map';
map(add(1), [1, 2, 3]);
I receive
TypeError: The plugin "ramda" didn’t export a Plugin instance
or, can I use this plugin with Babel v5?
Babel v5 is no longer supported. Use v0.1.2 for support.
.babelrc
(Recommended){
"plugins": ["ramda"]
}
or
{
"plugins": [
["ramda", {
"useES": true
}]
]
}
to use the new ramda/es/
path for imports, which is available since Ramda 0.25. This is recommended as it uses ES modules rather than CommonJS. It defaults to ramda/src/
when omitted.
$ babel --plugins ramda script.js
require("babel-core").transform("code", {
plugins: ["ramda"]
});
FAQs
Ramda modularized builds without the hassle
The npm package babel-plugin-ramda receives a total of 72,114 weekly downloads. As such, babel-plugin-ramda popularity was classified as popular.
We found that babel-plugin-ramda 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.