emune
v1.0.0
Published
A quick enum package
Downloads
22
Readme
emune
A basic JavaScript key mirror / enum utility.
mune
was taken. Kudos!
Usage
$ npm install emune
import emune from 'emune'
// Using an Array of keys
console.log(
emune(['blackhawks', 'islanders', 'bruins'])
) // => {blackhawks: 'blackhawks', islanders: 'islanders', bruins: 'bruins'}
// Using an Object
console.log(
emune({cubs: null, mets: null, 'red sox': null})
) // => {cubs: 'cubs', mets: 'mets', 'red sox': 'red sox'}
Tests
$ npm t