noom

0.1.0 • Public • Published

noom

Super simple Enums.

var noom = require('noom');
 
var Color = noom('RED', 'GREEN', 'BLUE');
 
var red = Color.RED;
assert.equal(red, Color.RED);
assert.notStrictEqual(red, 'RED'); //careful about type conversion ==
assert.equal(red + '', 'RED');
assert(red instanceof Color);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i noom

      Weekly Downloads

      0

      Version

      0.1.0

      License

      MPLv2.0

      Last publish

      Collaborators

      • seanmonstar