Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@flybondi/ramda-land
Advanced tools
Readme
A comprehensive collection of utilities for Ramda, providing a variety of useful, well tested, reusable functions.
yarn add @flybondi/ramda-land
yarn add ramda
Mix and match @flybondi/ramda-land
functions with common ramda
functions.
const { when } = require('ramda');
const { isNilOrEmpty, alwaysNew } = require('@flybondi/ramda-land');
const defaultToLife = when(isNilOrEmpty, alwaysNew({ life: 42 }));
defaultToLife(null); // -> { life: 42 }
defaultToLife({ foo: 'bar' }); // -> { foo: 'bar' }
curry
, curryN
and nAry
functions are exported by both @flybondi/ramda-land
and ramda
. They behave in the exact same way, except that @flybondi/ramda-land
counterparts retain wrapped function names after currying. This is useful for debugging and error tracing purposes as the name of the original function passed to any of the aforementioned functions will now appear on stack traces and debuggers (instead of an anonymous or sometimes arbitrarily named, internal ramda
function).
This change was already proposed to the Ramda team and a PR is pending approval.
> curry(function foo(x, y) { return x + y; });
[Function: foo]
> curry(function foo(x, y) { return x + y; })(1)
[Function: foo]
> curryN(2, function foo(x, y) { return x + y; })
[Function: foo]
> curryN(2, function foo(x, y) { return x + y; })(1)
[Function: foo]
> nAry(3, function foo(x, y) { return x + y; })
[Function: foo]
FAQs
A collection of reusable functions for ramda
The npm package @flybondi/ramda-land receives a total of 1,454 weekly downloads. As such, @flybondi/ramda-land popularity was classified as popular.
We found that @flybondi/ramda-land 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.