easy-enums (npm): 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.
Keywords: enum|type-checking