Type checking library for JavaScript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
LICENSE
README.md
gulpfile.js
index.js
package.json

README.md

is-type

Small type checking library for Node and the browser.

##Overview

Use this module when you need to determine what type a value is. Works in the browser, Node and AMD.

##Installation

npm i is-type --save-dev

##Usage

Simply require the is-type module. The export function can be used in any module you desire:

const is = require('is-type');
is.undefined(undefined);
is.null(null);
is.nan(90);
is.number(10.2343);
is.infinite([]);
is.object(Object.create(null));
is.string(`helloworld`);
is.func(1);
is.number(1e10);
is.promise(p)
is.regex(true);
is.integer(3.1112);
is.symbol(sym);

##TODO

Add tests..

##Tests

This module uses gulp for eslint, mocha, and code coverage tools.

Run gulp init

// wip

##Related Modules

##Contributing

Feel free to file an issue or bug.