# negate

> negates a function

Latest version **1.0.0** (published 2014-11-13) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2014-11-13 |
| First published | 2014-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | negate, function, functional, fn, standalone |

## Links

- npm: https://www.npmjs.com/package/negate
- Repository: https://github.com/mattdesl/negate
- Issues: https://github.com/mattdesl/negate/issues
- npm.io page: https://npm.io/package/negate

## Recent versions

- 1.0.0 (latest) — 2014-11-13

## README

# negate

[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)

Returns a negated version of the given function.

```js
var negate = require('negate')

function positive(n) {
    return n > 0
}

var negative = negate(positive)

negative(-50) === true
```

## Usage

[![NPM](https://nodei.co/npm/negate.png)](https://nodei.co/npm/negate/)

#### `negate(fn)`

Returns the negated version of `fn`.

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/negate/blob/master/LICENSE.md) for details.

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