Skip to content
Easy JavaScript type assurance.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
bower.json
ensure.js
ensure.min.js
ensure.raw.js
gruntfile.js
package.json
readme.md

readme.md

Ensure

Easy JavaScript type assurance.

$ bower install ensure
$ npm install ensure-it

Example of use:

var ensure = require('ensure-it');
var msg = "Hello World!";
ensure(msg).isa('string');

Files are:

  • ensure.js: Browserify/Node module definition.
  • ensure.raw.js: provides a global variable ENSURE.
  • ensure.min.js: minified version of ensure.raw.js

See: Github Page


By Dan Cobb: cobbdb@gmail.com
License: MIT

Something went wrong with that request. Please try again.