0.0.1 • Published 1 year ago

@yafh/assert v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@yafh/assert

A simple assertion library for nodejs or browser.

Why not use chai?

  • esm support
  • typescript support
  • lightweight

Installation

npm install @yafh/assert

Usage

import { assert } from '@yafh/assert';

const foo: string | undefined = 'foo';

assert(foo);

foo // foo is string
0.0.1

1 year ago