enumy
A tiny npm module for creating basic enumerables.
Usage
var enumy = ; var Planets = ; console;// #=> 'PLANET_MERCURY'
A common pattern is to expose an enum as a module. To do this, just tack on:
moduleexports = Planets
to the above file, then you can require('./path/to/Planets.js')
and use the enum wherever you'd like.
That's it!