es6-enum ES6 enum creation utility import { StringEnum } from '@epegzz/es6-enum' const COLOR = StringEnum('blue', 'green', 'red') // The above is equal to const COLOR = Object.freeze({ blue: 'blue', green: 'green', red: 'red' })