emune

1.0.0 • Public • Published

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

Dependents (3)

Package Sidebar

Install

npm i emune

Weekly Downloads

3

Version

1.0.0

License

ISC

Last publish

Collaborators

  • kyledetella