UNPKG

pnpm

Version:

Fast, disk space efficient package manager

116 lines (115 loc) 4.83 kB
{ "_args": [ [ { "raw": "map-obj@^3.0.0", "scope": null, "escapedName": "map-obj", "name": "map-obj", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/camelcase-keys" ] ], "_from": "map-obj@^3.0.0", "_hasShrinkwrap": false, "_id": "map-obj@3.1.0", "_location": "/map-obj", "_nodeVersion": "10.15.3", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/map-obj_3.1.0_1555915444512_0.3163818961387286" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "6.4.1", "_phantomChildren": {}, "_requested": { "raw": "map-obj@^3.0.0", "scope": null, "escapedName": "map-obj", "name": "map-obj", "rawSpec": "^3.0.0", "spec": ">=3.0.0 <4.0.0", "type": "range" }, "_requiredBy": [ "/camelcase-keys" ], "_resolved": "https://registry.npmjs.org/map-obj/-/map-obj-3.1.0.tgz", "_shasum": "3be9810d926db2f8612c728a2e95e03b7f109241", "_shrinkwrap": null, "_spec": "map-obj@^3.0.0", "_where": "/home/zoltan/src/pnpm/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": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" }, "directories": {}, "dist": { "integrity": "sha512-Xg1iyYz/+iIW6YoMldux47H/e5QZyDSB41Kb0ev+YYHh3FJnyyzY0vTk/WbVeWcCvdXd70cOriUBmhP8alUFBA==", "shasum": "3be9810d926db2f8612c728a2e95e03b7f109241", "tarball": "https://registry.npmjs.org/map-obj/-/map-obj-3.1.0.tgz", "fileCount": 5, "unpackedSize": 6628, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvWK1CRA9TVsSAnZWagAAk9cQAJLcJ5tv/izqk/dwpiN0\nAlBuYm9ELBeePfQ8KaEfHkLcvdp7uYks9kgPRlnR3tHghtQigd/XFSCTQDvN\nBvdU9aAnNKqPaejduocdW0CTBMYLerYqMkcaoS7O8rn33nQ3DenMkCiC3fbp\nCjLr80OheQz5ZIm6Plqe6nWFHBGm5i0LidGMYVBSqPh38cvBdJn2gnbbLKiT\nOSIyWHY8WE5n+c527+hjWsPU7OA2RMAac9n5OQSXWGEGaUJiU4SKc/dtkOPi\n4EDxUNcoEu+B9ec16dpycpN1Pgd28XUJf922NLJX48VTdZAiJ1MjrjNfsMs5\nL9IQdHNYZ5adFnpviGAjwfmUla4AVcghqEJpXt2SpjXjsH40z5t+8D5de4OT\nt3K9wMA+MPVczg9jqFJn8WusQaL9OYkX/9EEMYqdSjtTx5Xl+Idj+xPk5XcP\napBgejCCVUWvc6a9gMVCVfb79K5MG8RbVSYVmQj9bWBkScwPnvQanu8qTjJJ\nURMuexh193cy96XDxVJmGBHcK0Y9E8jk3rxUR2n9reJs1G1Ndz85ZkngMxVM\nap/76i7CWLsDfgSv3XQmVOJaQnc//aELcUCwXw1unuHUL9hiSyZIVd1jpD8E\nsDtJ+0z/SmWt5um+3RjCt2sVdi2KBsPujdzkVXVzBcJZsjL3pADScIwPALOS\nbjkm\r\n=Cc3B\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=6" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "5556028fd392f4fbdf18c1c604b0b0c883dd99f7", "homepage": "https://github.com/sindresorhus/map-obj#readme", "keywords": [ "map", "object", "key", "keys", "value", "values", "iterate", "iterator", "rename", "modify", "deep", "recurse", "recursive" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "map-obj", "optionalDependencies": {}, "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 map-obj\n```\n\n\n## Usage\n\n```js\nconst mapObject = require('map-obj');\n\nconst newObject = mapObject({foo: 'bar'}, (key, value) => [value, key]);\n//=> {bar: 'foo'}\n```\n\n\n## API\n\n### mapObject(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#### options\n\nType: `object`\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\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 && tsd" }, "version": "3.1.0" }