JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q57729F
  • License MIT

A simple tool for creating objects with keys mirrored as values. Inspired by React's keyMirror.

Package Exports

  • constant-mirror

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (constant-mirror) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

constant-mirror npm npm

A simple tool for creating objects with keys mirrored as values. Inspired by React's keyMirror.

Install

npm install --save constant-mirror

Usage

// ES6
import constantMirror from 'constant-mirror';
// or ES5
var constantMirror = require('constant-mirror');

constantMirror('HELLO', 'WORLD');
// => { HELLO: 'HELLO', WORLD: 'WORLD' }

License

MIT © Griffin Yourick