# arity-n

> Wraps a function with a function of a sertain arity.

Latest version **1.0.4** (published 2015-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install arity-n
pnpm add arity-n
yarn add arity-n
bun add arity-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.4 |
| Published | 2015-04-07 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | stoeffel |
| Maintainers | schtoeffel |
| Keywords | function, arity, functional |

## Links

- npm: https://www.npmjs.com/package/arity-n
- Repository: http://github.com/stoeffel/arityN
- Issues: http://github.com/stoeffel/arityN/issues
- npm.io page: https://npm.io/package/arity-n

## Recent versions

- 1.0.4 (latest) — 2015-04-07
- 1.0.3 — 2015-01-20
- 1.0.2 — 2015-01-20
- 1.0.1 — 2015-01-20
- 1.0.0 — 2015-01-20

## README

arity-n
============
[![Build Status](https://travis-ci.org/stoeffel/arityN.svg)](https://travis-ci.org/stoeffel/arityN) [![npm version](https://badge.fury.io/js/arity-n.svg)](http://badge.fury.io/js/arity-n)
> Wraps a function with a function of a sertain arity.

Installation
------------

`npm install arity-n`

Usage
-----

```js
function fn(a, b, c, d) {
}

var arityN = require('arity-n');
var newFn = arityN(fn, 3);

newFn.length; // => 3

var arity4 = require('arity-n/4');
var newFn = arity4(fn);

newFn.length; // => 4

// Max arity is 5.
var newFn = arityN(fn, 7);

newFn.length; // => 4
```

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