annois

Generative type checkers for JavaScript

4 个版本
安装
npm install annois
yarn add annois
pnpm add annois
bun add annois
README

build status

annois - Type checkers for JavaScript

annois provides an alternative to is.js. Its API is compatible with generators.js. This can be handy for generative testing.

Usage:

var is = require('annois');


// type comparisons
is.object(...);
is.array(...);
is.boolean(...);

// additional comparisons
is.upperCharacter(...);
is.object.with(['name', 'age'], ...);

// see source for more or introspect the library

License

annois is available under MIT. See LICENSE for more details.

版本列表
0.3.2 2015-02-17
0.3.1 2015-01-20
0.3.0 2013-06-29
0.2.0 2013-04-19