1.0.0 • Published 7 years ago

util-keymirror v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

util-keymirror

Create an object similar to React's keymirror

Usage

const keymirror = require('util-keymirror');

const responses = keymirror([
  'ROBOT',
  'NOT_EMAIL_OWNER',
  'NO_CONN_COOKIE'
]);

module.exports = responses;

console.log(responses);

{
  ROBOT: 'ROBOT',
  NOT_EMAIL_OWNER: 'NOT_EMAIL_OWNER',
  NO_CONN_COOKIE:  'NO_CONN_COOKIE'
}
1.0.0

7 years ago