{"_id":"modify-values","_rev":"287047","name":"modify-values","description":"Modify the values of an object","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-09-20T22:02:26.000Z","created":"2015-01-25T10:54:10.227Z","2.1.1":"2021-09-10T05:19:06.482Z","2.1.0":"2021-05-08T17:16:17.990Z","2.0.0":"2021-05-03T11:56:08.201Z","1.0.1":"2018-03-23T07:35:47.388Z","1.0.0":"2015-01-25T10:54:10.227Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/modify-values.git"},"versions":{"2.1.1":{"name":"modify-values","version":"2.1.1","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":"193a6c331b15e673556511502be2dd2c3ea851fa","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"homepage":"https://github.com/sindresorhus/modify-values#readme","_id":"modify-values@2.1.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"4b32875d02fe2fac2a8b2a38fa8da98ae74e03ff","size":1889,"noattachment":false,"key":"/modify-values/-/modify-values-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/modify-values/download/modify-values-2.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-values_2.1.1_1631251146304_0.6915877071166128"},"_hasShrinkwrap":false,"publish_time":1631251146482,"_cnpm_publish_time":1631251146482,"_cnpmcore_publish_time":"2021-12-16T10:49:05.283Z"},"2.1.0":{"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":{"shasum":"12ca192c3d4cc6682fb9be31c7f691bb735ba1d2","size":1903,"noattachment":false,"key":"/modify-values/-/modify-values-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/modify-values/download/modify-values-2.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-values_2.1.0_1620494177859_0.8398030181284812"},"_hasShrinkwrap":false,"publish_time":1620494177990,"_cnpm_publish_time":1620494177990,"_cnpmcore_publish_time":"2021-12-16T10:49:05.595Z"},"2.0.0":{"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":{"shasum":"ea1128743b7b738f4250e41cab71f1e5c06b8f9e","size":1741,"noattachment":false,"key":"/modify-values/-/modify-values-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/modify-values/download/modify-values-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-values_2.0.0_1620042968086_0.6953647483320329"},"_hasShrinkwrap":false,"publish_time":1620042968201,"_cnpm_publish_time":1620042968201,"_cnpmcore_publish_time":"2021-12-16T10:49:05.821Z"},"1.0.1":{"name":"modify-values","version":"1.0.1","description":"Modify the values of an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/modify-values.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"ava"},"files":["index.js"],"keywords":["object","assign","extend","properties","values","val","transform","transformation","map","modify"],"devDependencies":{"ava":"*"},"gitHead":"1f4ddda21cf48a35f60d42aed0bd3d2373e5b167","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"homepage":"https://github.com/sindresorhus/modify-values#readme","_id":"modify-values@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b3939fa605546474e3e3e3c63d64bd43b4ee6022","size":1654,"noattachment":false,"key":"/modify-values/-/modify-values-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/modify-values/download/modify-values-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/modify-values_1.0.1_1521790547165_0.789706550199825"},"_hasShrinkwrap":false,"publish_time":1521790547388,"_cnpm_publish_time":1521790547388},"1.0.0":{"name":"modify-values","version":"1.0.0","description":"Modify the values of an object","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/modify-values"},"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":["object","assign","extend","properties","values","val","transform","transformation","map","modify"],"devDependencies":{"ava":"0.0.4"},"gitHead":"31c94560a745cf780b28d9951e6c2b0463f862d0","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"homepage":"https://github.com/sindresorhus/modify-values","_id":"modify-values@1.0.0","_shasum":"e2b6cdeb9ce19f99317a53722f3dbf5df5eaaab2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"e2b6cdeb9ce19f99317a53722f3dbf5df5eaaab2","size":997,"noattachment":false,"key":"/modify-values/-/modify-values-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/modify-values/download/modify-values-1.0.0.tgz"},"directories":{},"publish_time":1422183250227,"_cnpm_publish_time":1422183250227,"_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","_attachments":{},"homepage":"https://github.com/sindresorhus/modify-values#readme","bugs":{"url":"https://github.com/sindresorhus/modify-values/issues"},"license":"MIT"}