npm.io
1.0.0 • Published 10 years ago

assert-ok

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
1

assert-ok Build Status

Assert that a value is truthy

Install

$ npm install --save assert-ok

Usage

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

Keywords