{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["map","obj","object","key","keys","value","values","val","iterate","iterator","rename","modify","deep","recurse","recursive"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Map object keys and values into a new object","readme":"# map-obj [![Build Status](https://travis-ci.org/sindresorhus/map-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/map-obj)\n\n> Map object keys and values into a new object\n\n\n## Install\n\n```\n$ npm install --save map-obj\n```\n\n\n## Usage\n\n```js\nconst mapObj = require('map-obj');\n\nconst newObject = mapObj({foo: 'bar'}, (key, value) => [value, key]);\n//=> {bar: 'foo'}\n```\n\n\n## API\n\n### mapObj(source, mapper, [options])\n\n#### source\n\nType: `Object`\n\nSource object to copy properties from.\n\n#### mapper\n\nType: `Function`\n\nMapping function.\n\n- It has signature `mapper(sourceKey, sourceValue, source)`.\n- It must return a two item array: `[targetKey, targetValue]`.\n\n#### deep\n\nType: `boolean`<br>\nDefault: `false`\n\nRecurse nested objects and objects in arrays.\n\n#### target\n\nType: `Object`<br>\nDefault: `{}`\n\nTarget object to map properties on to.\n\n\n## Related\n\n- [filter-obj](https://github.com/sindresorhus/filter-obj) - Filter object keys and values into a new object\n- [object-assign](https://github.com/sindresorhus/object-assign) - Copy enumerable own properties from one or more source objects to a target object\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/map-obj.git"},"users":{"nichoth":true,"scott.m.sarsfield":true},"bugs":{"url":"https://github.com/sindresorhus/map-obj/issues"},"license":"MIT","versions":{"1.0.0":{"name":"map-obj","version":"1.0.0","description":"Map object keys and values into a new object","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/map-obj"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["map","obj","object","key","keys","value","values","val","iterate"],"devDependencies":{"ava":"0.0.4"},"gitHead":"96c3c4363f3c7d192f33305884f129004f5c4bcb","bugs":{"url":"https://github.com/sindresorhus/map-obj/issues"},"homepage":"https://github.com/sindresorhus/map-obj","_id":"map-obj@1.0.0","_shasum":"bcbdf6756758763c182daf79e18094a2f1c85766","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"bcbdf6756758763c182daf79e18094a2f1c85766","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/map-obj/-/map-obj-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"map-obj","version":"1.0.1","description":"Map object keys and values into a new object","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/map-obj"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["map","obj","object","key","keys","value","values","val","iterate","iterator"],"devDependencies":{"ava":"0.0.4"},"gitHead":"a4f2d49ae6b5f7c0e55130b49ab0412298b797bc","bugs":{"url":"https://github.com/sindresorhus/map-obj/issues"},"homepage":"https://github.com/sindresorhus/map-obj","_id":"map-obj@1.0.1","_shasum":"d933ceb9205d82bdcf4886f6742bdc2b4dea146d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d933ceb9205d82bdcf4886f6742bdc2b4dea146d","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/map-obj/-/map-obj-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"map-obj","version":"2.0.0","description":"Map object keys and values into a new object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/map-obj.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["map","obj","object","key","keys","value","values","val","iterate","iterator","rename","modify","deep","recurse","recursive"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"40ce3a8b7d419249a6c0d83031b5d3214b9bf8ed","bugs":{"url":"https://github.com/sindresorhus/map-obj/issues"},"homepage":"https://github.com/sindresorhus/map-obj#readme","_id":"map-obj@2.0.0","_shasum":"a65cd29087a92598b8791257a523e021222ac1f9","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a65cd29087a92598b8791257a523e021222ac1f9","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/map-obj/-/map-obj-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/map-obj-2.0.0.tgz_1474089008506_0.09945452911779284"},"directories":{}}},"name":"map-obj","time":{"modified":"2017-04-09T23:50:21.762Z","created":"2014-10-12T11:47:07.079Z","1.0.0":"2014-10-12T11:47:07.079Z","1.0.1":"2015-05-02T18:02:46.655Z","2.0.0":"2016-09-17T05:10:08.778Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/map-obj#readme"}