This package has been deprecated

Author message:

deprecated: use argsy instead

arse

1.3.0 • Public • Published

arse

assert stuff

Install

npm install --save arse
yarn add arse

Import

// ES2015
import arsgy from 'arse'
// CommonJS
var arse = require('arse')

API

arse.{method}(val[, subject][, name[, name2]])

Assert val is of type indicated by method (see below).

  • val {*} value to assert
  • subject {*} (optional) subject of assert
  • name {String} name to report in error message
  • nam2 {String} (optional) name of subject

Methods

str
obj
nonEmptyStr
num
sym
int
bool
undef
null
elem (use subject arg)
key (use subject arg)

Contributing

All pull requests and issues welcome!

If you're not sure how, check out the great video tutorials on egghead.io!

License

MIT © Sam Gluck

Readme

Keywords

none

Package Sidebar

Install

npm i arse

Weekly Downloads

0

Version

1.3.0

License

MIT

Last publish

Collaborators

  • sdgluck