Skip to content

bendrucker/ts-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-enum Build Status Greenkeeper badge

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

About

Create TypeScript enums in JS

Resources

License

Stars

Watchers

Forks

Packages

No packages published