npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

furry

v0.2.0

Published

Fast curry with cyclical placeholder semantics

Downloads

7

Readme

furry

Fast¹ curry and unstage with cyclical placeholder semantics²

const {_, curry, unstage} = require('furry');

const a = 1, b = 2, c = 3;

const f = curry((a, b, c) => a - b * c);
const g = unstage(3, a => b => c => a - b * c);

[
  f(a, b, c),
  g(a, b, c),
  f(_, _, c, _)(b, a),
  g(_, _, c, _)(b, a),
  f(_)(_)(c)(_)(b)(a),
  g(_)(_)(c)(_)(b)(a),
  f(_, _, c, _, b, a),
  g(_, _, c, _, b, a)
]
.every(x => x === -5)

1 Fast

$ node bench
baseline:add(1, 1)        x 72,850,400 ops/sec ±1.50% (86 runs sampled)
furried(1, 1)             x 4,445,663 ops/sec ±0.64% (89 runs sampled)
unstaged(1, 1)            x 3,450,117 ops/sec ±1.88% (84 runs sampled)
lodashed(1, 1)            x 7,568,708 ops/sec ±0.71% (91 runs sampled)
ramdad(1, 1)              x 10,308,174 ops/sec ±0.77% (90 runs sampled)
baseline:curried(1)(1)    x 18,450,633 ops/sec ±0.68% (93 runs sampled)
furried(1)(1)             x 3,121,704 ops/sec ±0.51% (91 runs sampled)
unstaged(1)(1)            x 3,140,134 ops/sec ±0.54% (91 runs sampled)
lodashed(1)(1)            x 243,145 ops/sec ±0.69% (91 runs sampled)
ramdad(1)(1)              x 1,543,558 ops/sec ±0.80% (90 runs sampled)
baseline:curryPartial(1)  x 63,945,780 ops/sec ±0.41% (88 runs sampled)
furryPartial(1)           x 12,362,120 ops/sec ±0.88% (94 runs sampled)
unstagePartial(1)         x 11,079,596 ops/sec ±2.81% (87 runs sampled)
lodashPartial(1)          x 2,263,313 ops/sec ±0.50% (94 runs sampled)
ramdaPartial(1)           x 10,573,827 ops/sec ±0.76% (90 runs sampled)
furryPlaceholded(1)       x 5,265,711 ops/sec ±0.50% (90 runs sampled)
unstagePlaceholded(1)     x 2,834,040 ops/sec ±0.91% (89 runs sampled)
lodashPlaceholded(1)      x 2,228,914 ops/sec ±0.75% (90 runs sampled)
ramdaPlaceholded(1)       x 10,835,524 ops/sec ±0.67% (92 runs sampled)
furried(_, _, _)(1, 1)    x 1,089,515 ops/sec ±0.70% (93 runs sampled)
unstaged(_, _, _)(1, 1)   x 409,976 ops/sec ±1.19% (90 runs sampled)
lodashed(_, _, _)(1, 1)   x 244,057 ops/sec ±1.00% (92 runs sampled)
ramdad(_, _, _)(1, 1)     x 2,239,597 ops/sec ±1.14% (80 runs sampled)

2 Cyclical placeholder semantics

Rather than the placeholder flipping the argument with the next, the argument is flipped with the last. To learn more, check out my Gist explaining the idea.