# nullthrows

> flow typed nullthrows

Latest version **1.1.1** (published 2018-12-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-12-10 |
| First published | 2016-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Andres Suarez |
| Maintainers | zertosh |
| Keywords | assert, flow, invariant, nullthrows |

## Links

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

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-12-10
- 1.1.0 (next) — 2018-09-09
- 1.0.3 — 2018-09-08
- 1.0.2 — 2018-07-17
- 1.0.1 — 2018-02-19
- 1.0.0 — 2016-07-30

## README

# nullthrows

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

A [flow](https://flowtype.org) typed utility that accepts `value` (e.g. `nullthrows(value)`) and throws if `value` is `null` or `undefined`, otherwise it returns `value`.

Also see [`invariant`](https://github.com/zertosh/invariant).

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