node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

map-keys

Map object keys returning a new object

map-keys

Map object keys returning a new object

Example

var map = require("map-keys");
map({ foo: 2 }, function(key, val, obj) {
  return key + "bar";
});
// -> { foobar: 2 } 

Installation

npm install map-keys