node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


scalar specs module

Scalar Specs

Basic module to test equality against scalar types in specs.

Scalar types are : null, boolean, number and string.

npm install specs-scalar
var assert = require('assert');
var specs = require('specs');

var engine = specs.engine('object', 'array', 'scalar');

var spec = engine.compile(42);


the object and array modules are not strictly required, only the {} and [] analysers are (see test.js for a standalone example).