# help-curry

> Small template I use to quickly create npm packages

Latest version **0.2.0** (published 2025-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install help-curry
pnpm add help-curry
yarn add help-curry
bun add help-curry
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2025-12-21 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Nodet |
| Maintainers | pnodet |
| Keywords | helper, curry, javascript |

## Links

- npm: https://www.npmjs.com/package/help-curry
- Repository: https://github.com/pnodet/help-curry
- Issues: https://github.com/pnodet/help-curry/issues
- npm.io page: https://npm.io/package/help-curry

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2025-12-21
- 0.1.0 — 2021-08-28
- 0.0.2 — 2021-08-28

## README

# help-curry
> A tiny curry helper for fixed-arity functions

[![CI](https://github.com/pnodet/help-curry/actions/workflows/check.yml/badge.svg)](https://github.com/pnodet/help-curry/actions/workflows/check.yml)
[![npm version](https://img.shields.io/npm/v/help-curry)](https://www.npmjs.com/package/help-curry)
[![npm downloads](https://img.shields.io/npm/dt/help-curry)](https://www.npmjs.com/package/help-curry)

## Install

```bash
npm install help-curry
```

```bash
pnpm add help-curry
```

```bash
bun add help-curry
```

## Usage

```js
import curry from 'help-curry';

const sum = (a, b, c) => a + b + c;
const curriedSum = curry(sum);

curriedSum(1, 2, 3); // 6
curriedSum(1)(2, 3); // 6
curriedSum(1)(2)(3); // 6
```

## API

### `curry(fn)`

Creates a curried version of `fn` that can be called with any number of arguments
until the original function arity is satisfied. The arity is taken from
`fn.length`.

- Preserves the `this` context when calling the original function
- Works well with fixed-arity functions
- Ships with TypeScript types

## Development

```bash
bun install
```

```bash
bun test
```

```bash
bun run lint
```

```bash
bun run build
```

## License

MIT © [Paul Nodet](https://pnodet.com)

---
_Source: https://npm.io/package/help-curry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
