
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A tiny curry library.
fk()A special kind of function currying.
If fewer than the expected number of arguments are supplied, then the function is partialled and re-curried.
If the exact number of arguments are supplied, then the curried function is applied with all the appropriate arguments and the result returned.
If more that the expected number of arguments are supplied, then the curried function is applied with the number of arguments it expects. The result of which is then expected to be a function and is applied the rest of the arguments.
Accepts an optional expected argument count - defaults to function.length.
@param f :: Function
@param _n :: Optional Nat
Example:
var f = fk(function (a, b) {
return fk(function (c, d) {
return [a, b, c, d]
})
})
[1, 2, 3, 4]
= f(1, 2, 3, 4)
= f(1)(2, 3, 4)
= f(1, 2)(3, 4)
= f(1, 2, 3)(4)
= f(1, 2)(3)(4)
= f(1)(2, 3)(4)
= f(1)(2)(3, 4)
= f(1)(2)(3)(4)
fk.vargs(f)Convert a function that accepts an array to a variadic function.
Given a function f, produce a function that when applied, apply f with
an array of all the arguments supplied.
@param f :: [*] -> a
@returns :: (...) -> a
fk.vapply(f, args)Apply a function given an array of arguments.
@param f :: (...) -> a
@param args :: [*]
@returns a
fk.papply(f, args)Given a function f, and an array of arguments args; produce a function
that when applied with nargs will apply f with the args prepended to
nargs.
@param f :: (...) -> a
@param args :: [*]
@returns :: (...) -> a
FAQs
A tiny curry library.
We found that fk 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.