@zkochan/pnpm
Version:
Fast, disk space efficient package manager
115 lines (114 loc) • 3.87 kB
JSON
{
"_args": [
[
{
"raw": "map-obj@^2.0.0",
"scope": null,
"escapedName": "map-obj",
"name": "map-obj",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/camelcase-keys"
]
],
"_from": "map-obj@>=2.0.0 <3.0.0",
"_id": "map-obj@2.0.0",
"_inCache": true,
"_location": "/map-obj",
"_nodeVersion": "4.5.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/map-obj-2.0.0.tgz_1474089008506_0.09945452911779284"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
"raw": "map-obj@^2.0.0",
"scope": null,
"escapedName": "map-obj",
"name": "map-obj",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/camelcase-keys"
],
"_resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz",
"_shasum": "a65cd29087a92598b8791257a523e021222ac1f9",
"_shrinkwrap": null,
"_spec": "map-obj@^2.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/camelcase-keys",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/map-obj/issues"
},
"dependencies": {},
"description": "Map object keys and values into a new object",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "a65cd29087a92598b8791257a523e021222ac1f9",
"tarball": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"gitHead": "40ce3a8b7d419249a6c0d83031b5d3214b9bf8ed",
"homepage": "https://github.com/sindresorhus/map-obj#readme",
"keywords": [
"map",
"obj",
"object",
"key",
"keys",
"value",
"values",
"val",
"iterate",
"iterator",
"rename",
"modify",
"deep",
"recurse",
"recursive"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "map-obj",
"optionalDependencies": {},
"readme": "# map-obj [](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",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/map-obj.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.0",
"xo": {
"esnext": true
}
}