JSPM

ensure-it

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q36883F
  • License MIT

Easy JavaScript type assurance.

Package Exports

  • ensure-it

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ensure-it) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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