{"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":{"integrity":"sha512-BRfRA54UxIjR2sEPhcriXfRI5qm9OQ4A3TYiZr6FPn8ZNyjNlhaub9FKt6KU+c9q88LrWUBZBxpbv6+jjcKp/w==","shasum":"4b32875d02fe2fac2a8b2a38fa8da98ae74e03ff","tarball":"http://registry-npm.ywwl.com/modify-values/download/modify-values-2.1.1.tgz","fileCount":5,"unpackedSize":3617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOurKCRA9TVsSAnZWagAAULoP/0Rnn7M8c7RS4vrMLJil\ngGlDrQ1msWIsEamPubgELJeCYY66GxCCKR2Rughn9MBAWiIPVSVbZFXmpCpA\nxWNIeLnV4dN+TiX1NTpYgjZbxjhXDFCKXusZDVOSKQn1ySz4LVf63curuHtF\nXOXVCNxUmwCa9Ot2FksValG42E+DkSJacnBYpdoyqAkd3Vcnizg7yGi1EOdY\ng4mHBIdDq86zKH9ZVMAA8jycSAwmGquDtLUS6x3qIqf7yXu4q1mZSm8vCOZ6\npS7pzo+6nxrzU81/9DeJWPzdY2HFaK5hrh2w0JWDLfd/TShqtdnF+7tPRvhu\nRlyWY9YpGhWSGn2OazqZ9YzmM95DmXr51HbKKLg3YpXkF33jWUV7T1hS56i3\nraAKi7OMFiilpSQNn8Inj3GccDfUW2e5mcLif2pYeo7x57woLBYf8kzy0l/6\nwrU+AIEzFRPvfSVa/6b5m5jzeew9Nrc1lODI3LMEokcPRL9UC1BTvu5IPHeg\nyqcLMbs9mRfx2ZjSRCkCygnEFU8Vvuy62AClAi/l5WDTTmH8AHx2Z5PmmTcP\nAfe/hDMvppenOvhh8NwnDwyAW3J6MmhKlBW+bG7BL9Odhw5JM9urVaf/AsAE\nfCqePHyIWAFH/t5NLmk2bKLGHJ2fe3ubYVflvfxnhrQJOSJ0aYvLAY7LUXNV\nPd/A\r\n=1IwS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3QfydZcZB9W7NFcY4pbIElI0/tLM7tlZEMvqokE5/NAiEA304KCiuNZLzuEWB2PjRGhtgCbSOANBIDwdWE/3SP7iw="}],"size":1889,"noattachment":false,"key":"/modify-values/-/modify-values-2.1.1.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.1_1631251146304_0.6915877071166128"},"_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":1631251146482,"_cnpm_publish_time":1631251146482,"dist-tags":{"latest":"2.1.1"}}