Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Easy JavaScript type assurance.
JavaScript
Branch: master

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 Updated readme and created min file.
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.