# curry-n

> Curry a function with specified arity

Latest version **1.0.2** (published 2017-01-29) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-01-29 |
| First published | 2017-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ishi Ruy |
| Maintainers | nhz.io |
| Keywords | curry, curry-n, nhz.io |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2017-01-29
- 1.0.1 — 2017-01-28

## README

<h1 align="center">curry-n</h1>

<p align="center">
  <a href="https://travis-ci.org/nhz-io/curry-n">
    <img src="https://img.shields.io/travis/nhz-io/curry-n.svg?style=flat"
         alt="Travis Build">
  </a>
  <a href="https://npmjs.org/package/curry-n">
    <img src="https://img.shields.io/npm/v/curry-n.svg?style=flat"
         alt="NPM Version">
  </a>

  <a href="https://www.bithound.io/github/nhz-io/curry-n">
    <img src="https://img.shields.io/bithound/code/github/nhz-io/curry-n.svg?style=flat"
         alt="Bithound Status">
  </a>

  <a href="https://github.com/nhz-io/curry-n/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/nhz-io/curry-n.svg?style=flat"
         alt="License">
  </a>
</p>
<p align="center">
    <h3 align="center">Curry a function with specified arity</h3>
</p>

## Install
```bash
npm i -S curry-n
```

## Usage
```javascript
const curryN = require('curry-n')

const curried = curryN(3, function(...args) {
    console.log(...args)
})

curried(1, 2, 3)
curried(1)(2)(3)

const curriedThis = curryN(3, function(...args) {
    console.log(this, ...args)
})

curriedThis.call({some: 'this arg'})(1)(2, 3)
curriedThis(1, 2).call('some this arg')(3)
```

## Dev

```sh
git clone https://github.com/nhz-io/curry-n
cd curry-n
npm i
npm start
```

### Coverage
```sh
npm run coverage
npm run report
```

## License

### [MIT](LICENSE)

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