EnumyJS is a library to work with enum types easily in javascript.
With NPM
npm install enumyjs
With Bower
bower install enumyjs
var enum = require('enum');
var MyEnum = enum.build(['RED', 'GREEN', 'BLUE']);
var myEnumInstance = new MyEnum(MyEnum.RED);
- Inital code
- Base (to be extended)
- Enum
- Flag
- Some testing