@fangcha/assert
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

npm install @fangcha/assert

Assert functions.

Installation

npm install @fangcha/assert

Usage

In Node.js:

const assert = require('@fangcha/assert')
// import * as assert from '@fangcha/assert'

...
// If you want to assert something.
assert.ok(1 === 2, 'Not equal', 400)

Dependents (3)

Package Sidebar

Install

npm i @fangcha/assert

Weekly Downloads

9

Version

1.2.0

License

MIT

Unpacked Size

2.5 kB

Total Files

6

Last publish

Collaborators

  • fangqk1991