Skip to content

seanmonstar/noom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Super simple Enum types

Resources

License

Stars

Watchers

Forks

Packages

No packages published