1.0.0 • Published 8 years ago

emune v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

emune

emune build status

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