# logical-not

> Logical NOT Function

Latest version **1.0.9** (published 2021-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install logical-not
pnpm add logical-not
yarn add logical-not
bun add logical-not
```

## 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.9 |
| Published | 2021-08-26 |
| First published | 2019-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pavel Dymkov |
| Maintainers | paveldymkov |
| Keywords | logical, not, inverse |

## Links

- npm: https://www.npmjs.com/package/logical-not
- Repository: https://github.com/PavelDymkov/logical-not
- Homepage: https://github.com/PavelDymkov/logical-not#readme
- Issues: https://github.com/PavelDymkov/logical-not/issues
- npm.io page: https://npm.io/package/logical-not

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2021-08-26
- 1.0.7 — 2020-08-25
- 1.0.5 — 2020-08-25
- 1.0.3 — 2020-08-11
- 1.0.1 — 2020-08-10
- 1.0.0 — 2019-02-18

## README

# Logical NOT Function

The **not** function is an alphabetic analogue of the unary operator **!**.
It is used to increase the readability of the code.

Usage:

```js
import not from "logical-not";
// or import { not } from "logical-not";

if (not("foo".includes("bar"))) {
    console.log("baz");
}
```

### Typescript support

```ts
function main(): void {
    const div = document.querySelector("div");
    // div is HTMLDivElement | null

    if (not(div)) return;
    // now div is HTMLDivElement

    div.textContent; // ok
    // ^ no 'possibly null' error
}
```

## License

MIT License (see `LICENSE` file).

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