object-key-prefixer
A JavaScript object key prefixer
A simple method that takes an object and returns a new object where all of the top-level keys have been prefixed by some string.
Table of Contents
Install
npm install --save object-key-prefixer
Usage
var prefixer = ;var obj = one: 'foo' two: bar: 'baz'
Output:
awesome_one: 'foo' awesome_two: bar: 'baz'
Contribute
PRs accepted. Note that code uses standard styling.
License
MIT © Dan Caddigan