Skip to main content
Home
Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score82%
Publisheda year ago (0.1.0)

Currify

Currify is a utility library for functional programming in TypeScript. It provides tools to transform functions into curried versions, making them easier to compose and reuse.

Installation

# deno
deno add jsr:@embers-of-the-fire/currify

# npm (one of the below, depending on your package manager)
npx jsr add @embers-of-the-fire/currify
yarn dlx jsr add @embers-of-the-fire/currify
pnpm dlx jsr add @embers-of-the-fire/currify
bunx jsr add @embers-of-the-fire/currify

Usage

Here's a simple example of how to use Currify:

import { currify } from 'currify';

const add = (a: number, b: number): number => a + b;
const curriedAdd = currify(add);

console.log(curriedAdd(1)(2)); // Output: 3

License

This project is licensed under the MIT License OR the Apache-2.0 License.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";
or

Import directly with a jsr specifier

import * as currify from "jsr:@embers-of-the-fire/currify";

Add Package

pnpm i jsr:@embers-of-the-fire/currify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";

Add Package

yarn add jsr:@embers-of-the-fire/currify
or (using Yarn 4.8 or older)
yarn dlx jsr add @embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";

Add Package

vlt install jsr:@embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";

Add Package

npx jsr add @embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";

Add Package

bunx jsr add @embers-of-the-fire/currify

Import symbol

import * as currify from "@embers-of-the-fire/currify";