# pare

> Compare a function input against the previous input value

Latest version **1.0.0** (published 2015-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install pare
pnpm add pare
yarn add pare
bun add pare
```

## 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.0 |
| Published | 2015-09-26 |
| First published | 2015-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | compare, function, input, value |

## Links

- npm: https://www.npmjs.com/package/pare
- Repository: https://github.com/bendrucker/pare
- Homepage: https://github.com/bendrucker/pare#readme
- Issues: https://github.com/bendrucker/pare/issues
- npm.io page: https://npm.io/package/pare

## Recent versions

- 1.0.0 (latest) — 2015-09-26

## README

# pare [![Build Status](https://travis-ci.org/bendrucker/pare.svg?branch=master)](https://travis-ci.org/bendrucker/pare)

> Compare a function input against the previous input value


## Install

```
$ npm install --save pare
```


## Usage

```js
var compare = require('pare')
var fn = compare(function (a, b) {
  //=> null, 1
  //=> 1, 2   
})

fn(1)
fn(2)
```

## API

#### `compare(fn)` -> `function`

##### fn

*Required*  
Type: `function`

Returns a single-argument function wrapper around an inner comparison function (`fn`). 


## License

MIT © [Ben Drucker](http://bendrucker.me)

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