{"name":"modify-values","version":"2.0.0","description":"Modify the values of an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/modify-values.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["object","assign","extend","properties","values","value","transform","transformation","map","modify"],"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"gitHead":"b9b843d4f63765be90355760cc99c02bb38c89b9","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"homepage":"https://github.com/sindresorhus/modify-values#readme","_id":"modify-values@2.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-9nW5UpwFBeeQCYCgCTfBPDxE2QI3UIgQ2rc2P8focem5B82KHfZCsn5nDFW7saksd+/GTnsQEPXvcupiX5z3aA==","shasum":"ea1128743b7b738f4250e41cab71f1e5c06b8f9e","tarball":"http://registry-npm.ywwl.com/modify-values/download/modify-values-2.0.0.tgz","fileCount":4,"unpackedSize":3052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj+TYCRA9TVsSAnZWagAAUwIQAJob8eS0JeepdJ1H91tp\nIFwbfb1nKqBUlS2AiwvNuJxl1u86Q0jU5bG9v4G997N3aFsXwDomS9vLIdDR\n8VuMc38Ql1AUJG32UmlgPafebViiS0twspUuDX0LOiNHep1A1nFCEHmh14lx\nmSadIe2zdos3dDkDVU3K0lEQIyMY9qwuNmoi2Mil/6OPJi3MH/EDiM0LNrVJ\nUCfCaqkTomD2bOT5XLhiE4UNpSB2y641BsPiqU76/Ns/kUJiuocGB4E2Xxno\nXfHvdtVRwI9GmTYUgxlsJo7Zr9HNansgoJJK4ad1YCfIlmT705g4CNOgcnkw\nJzvTVJIg46Tg0wuIHrWreiePZp+c/JKM3ifnGmhRL6ZDXLYUkjK8pdDIk05Y\nYC3fVGjoe+6fNNxsHPRzPKmFpGqrak88KXv5B1cgkksA2O9ogqJx6SzjwjDM\n/yFUIJAISyXaDQA3HrQf2JQ5VL7E3aCnN9VHZFPwQo2QJmMB1gNmD5m4Pd0f\n2zIDdSpMec4prel39GQw+qMJXxAelidaNUMXx4i8K9+opyDTI2MRsyjGOioA\nSPDXQBuoGzjAuUbDsE+guBBBRhjEAABdp02lREy3GJZ23Jx2qvp7mQNd+eVt\nmEMnn+HUyWGe4OxoluL5P95N8s7RPbhrzYKRh0gRinLkSVLUBsY0udn0meaf\ni2Dy\r\n=G4DG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhhFYyKCCAkCeE8fDdf++RXBFmnO1uhDYrS5qp0Mo/pAiEA7ePvirl3X8i/IUfyciq/X1eCvzK14rH/NZzq8QIpeKc="}],"size":1741,"noattachment":false,"key":"/modify-values/-/modify-values-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-values_2.0.0_1620042968086_0.6953647483320329"},"_hasShrinkwrap":false,"readme":"# modify-values\n\n> Modify the values of an object\n\n## Install\n\n```\n$ npm install modify-values\n```\n\n## Usage\n\n```js\nimport modifyValues from 'modify-values';\n\nmodifyValues({foo: 'UNICORN'}, (value, key) => value.toLowerCase());\n//=> {foo: 'unicorn'}\n```\n\n## API\n\n### modifyValues(object, transformer)\n\nModifies the values and returns a new object.\n\n#### object\n\nType: `object`\n\n#### transformer(value, key)\n\nType: `Function`\n\nGets the value and key for each item and is expected to return the new value.\n\n## Related\n\nSee [`modify-keys`](https://github.com/sindresorhus/modify-keys) for modifying the keys of an object.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-modify-values?utm_source=npm-modify-values&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1620042968201,"_cnpm_publish_time":1620042968201,"dist-tags":{"latest":"2.1.1"}}