# assert-ok

> Assert that a value is truthy

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

## Install

```sh
npm install assert-ok
pnpm add assert-ok
yarn add assert-ok
bun add assert-ok
```

## 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-01 |
| First published | 2015-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | assert, ok |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-09-01

## README

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

> Assert that a value is truthy


## Install

```
$ npm install --save assert-ok
```


## Usage

```js
var assertOk = require('assert-ok')

assertOk(true)
//=> noop

assertOk(false, 'My message')
//=> Error: My message
```

## API

#### `assertOk(input)` -> `undefined`

##### input

*Required*  
Type: `any`

An input to check for truthiness.


## License

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

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