# @yafh/assert

> A simple assertion library for nodejs or browser.

Latest version **0.0.1** (published 2023-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @yafh/assert
pnpm add @yafh/assert
yarn add @yafh/assert
bun add @yafh/assert
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-01-28 |
| First published | 2023-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | YanAndFish |
| Maintainers | yanandfish |
| Keywords | assert |

## Links

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

## Dependencies (2)

- [typed-assert](https://npm.io/package/typed-assert.md) ^1.0.9
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0

## Recent versions

- 0.0.1 (latest) — 2023-01-28

## README

# @yafh/assert

A simple assertion library for nodejs or browser.

## Why not use chai?

- esm support
- typescript support
- lightweight

## Installation

```bash
npm install @yafh/assert
```

## Usage

```ts
import { assert } from '@yafh/assert';

const foo: string | undefined = 'foo';

assert(foo);

foo // foo is string

```

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