ENUM Packages

easy-enums

Easy but powerful enums for safer code. e.g. const Fruit = new Enum("apple pear banana"); gives you Fruit.apple, Fruit.has("apple"), and Fruit.$apple() (as a fail-fast value), whilst Fruit.isApple('penguin') will throw an error.

1.1.8 • Published 5 years ago

enum-map

Enum like key-value map

1.0.1 • Published 9 years ago

sort-enum

Utility class for sort enumeration and miscellaneous sorting-related semantics.

0.1.9 • Published 9 years ago

tiny-enum

Simple string-based enumeration for javascript

1.1.0 • Published 10 years ago

node-enums

Enumerated types for node.js.

2.0.0 • Published 8 years ago

enumify-ts

A JavaScript library that helps with the enum pattern based on TypeScript. This fork of [rauschma/enumify](https://github.com/rauschma/enumify) permits to infer the correct type from constructed collections: for example, the type of `values()` will be `A

2.0.2 • Published 5 years ago