ts-enum
v1.0.1
Published
Create TypeScript enums in JS
Downloads
5
Readme
ts-enum
Create TypeScript enums in JS
Install
$ npm install --save ts-enum
Usage
var tsEnum = require('ts-enum')
tsEnum({foo: 'bar'})
//=> {foo: 'bar', bar: 'foo'}
API
tsEnum(obj)
-> object
obj
Required
Type: object
The JavaScript object from which to create a pseudo-enum.
License
MIT © Ben Drucker