{"name":"modify-values","version":"2.1.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 && tsd"},"keywords":["object","assign","extend","properties","values","value","transform","transformation","map","modify"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"c5077fb700b629e981c849dcd8405b3e3245060a","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"homepage":"https://github.com/sindresorhus/modify-values#readme","_id":"modify-values@2.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-BNE9pqU+ool66TQ+4Oz5RqHKMSI+cB8qOH7xIhGf2CDBpkrgLBjNfRUzaTfu57OFgETUNdbBtE4a5belkMDt+g==","shasum":"12ca192c3d4cc6682fb9be31c7f691bb735ba1d2","tarball":"http://registry-npm.ywwl.com/modify-values/download/modify-values-2.1.0.tgz","fileCount":5,"unpackedSize":3630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglsdiCRA9TVsSAnZWagAA88EP/jsUGQw5ulQ58YE6c3Ws\nHNV4OijtQjXyII45hcSCURBicuPy/cDDVChKsUZFBLQgjYU1js1xLrpAAGwC\n4gSJwpHjMppyJR1/iFiA5MLh/ytSvUNf5+TUs0swlpX7q2Ydkx3wgpFfrVsF\n5nHG/EVVCH6qHE5ImkZoQdi48FTH3FFuxPZTAQwWozWGt0mMkK3/+jsW08iL\neaKTKQCaBruLUDLNIyXzMuCIHX6VRamJ/eW1lQ7ECJcaMrJ44VkL0q/Esc1/\n2O0ebVVL/4R8R6odkEsLUhawrCq4qOUZ6kHZJVh1j1x/RgIAx60FS2WHWumv\nL1kJF4gW3WA0X8x1c6G5WMq3ixWcVaXuUPknsf3jQ19heqVo6FMFZNmKEibb\nyj/vd7RcRQO+gH1c5lW/RcgOunEV2w5ozqgF8Dos+EeuBIdJIQEJq8RI9YWI\nuTyMLZlDselMWmZvYFSOkrbjpVWY9ljB2pMI07z5IT3cOyDscUpINVznlEKB\nHfOoZ2VCkPqkLHp3U0VE8srmkkbenVJRscriqJAoLG39olcOurqWH/3SAkyJ\noc+A42jAnFrz2AHKJL8hhWy4Zsl3leLHB0+aOZAhp6qDpk8l5MYQmhfkqk4o\nUsx2XzD+WxZEJUAPVEp0aK3izvsK8hIp/w8kU9ragN3gKioQrpWdy+3TusZG\nqr3t\r\n=fYY5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs8ynq5R7bcvefNvjyD8U9CrMaT51tjLZAFChrQIAGVQIgdmOMGWzCOLH7amUyr7XabtHm3+DkFtwAzgWbSrpQTxI="}],"size":1903,"noattachment":false,"key":"/modify-values/-/modify-values-2.1.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.1.0_1620494177859_0.8398030181284812"},"_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":1620494177990,"_cnpm_publish_time":1620494177990,"dist-tags":{"latest":"2.1.1"}}