Skip to content

Releases: vivin/enumjs

enumjs 1.0.2

02 Nov 22:55
Compare
Choose a tag to compare

Version 1.0.2

enumjs is a type-safe implementation of enums in JavaScript. It is modeled after the way enums are realized in Java. It is also available as a node package called node-enumjs.

Bugfixes:

  • Added toJSON to enum instances so that JSON.stringify returns a friendly representation of the enum constant (i.e., a string representation of the constant itself).

Credits

  • Vivin Paliath / author

enumjs 1.0.1

21 Sep 04:24
Compare
Choose a tag to compare

Version 1.0.1

enumjs is a type-safe implementation of enums in JavaScript. It is modeled after the way enums are realized in Java. It is also available as a node package called node-enumjs.

Features:

  • Define type-safe enums (i.e., it is possible to use instanceof).
  • Define behavior on enum constants.

Credits

  • Vivin Paliath / author