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

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 mirror from 'constant-mirror';
// or ES5
var mirror = require('constant-mirror');
mirror('HELLO', 'WORLD');
// => { HELLO: 'HELLO', WORLD: 'WORLD' }
Symbol Mirror
// ES6
import mirror from 'constant-mirror/lib/symbol';
// or ES5
var mirror = require('constant-mirror/lib/symbol');
mirror('HELLO', 'WORLD');
// => { HELLO: Symbol(HELLO), WORLD: Symbol(WORLD) }
License
MIT © Griffin Yourick