{"_id":"toxic","_rev":"6-9742facd8d09b7a5ba51e89ccc5c9219","name":"toxic","description":"Mutate keys and values in objects. Returns a new version of the object","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"toxic","version":"1.0.0","description":"Mutate keys and values in objects. Returns a new version of the object","main":"index.js","scripts":{"test":"node test.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/toxic.git"},"keywords":["globject","glob","minimatch","map","slash"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/toxic/issues"},"homepage":"https://github.com/scottcorgan/toxic","devDependencies":{"tap-spec":"^1.0.1","tape":"^3.0.3"},"dependencies":{"lodash":"^2.4.1"},"gitHead":"5ab718b0321bf3c225ead4be52de8b43bf85739b","_id":"toxic@1.0.0","_shasum":"f1154d8b6ac21875ac943a9f7408df2dfe164ea2","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"f1154d8b6ac21875ac943a9f7408df2dfe164ea2","tarball":"https://registry.npmjs.org/toxic/-/toxic-1.0.0.tgz","integrity":"sha512-JtJdtZ2+8ZZLQZc2KLx2yqY4SLgpLzt90ocTrl1Ens7Vk+yv7MH9HUpyyif+06oYk+8u10nKgDNZbOmyO9gFfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY9joCp42tlm8EJOwXmxJQet8461c4SHj2LhoVJuT4tAiEAtJnvOrRXFLfCeYmkxhQ+krFSNU3CjKoKCu8pdEdDzQs="}]},"directories":{}},"1.0.1":{"name":"toxic","version":"1.0.1","description":"Mutate keys and values in objects. Returns a new version of the object","main":"index.js","scripts":{"test":"node test.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/scottcorgan/toxic.git"},"keywords":["globject","glob","minimatch","map","slash"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/toxic/issues"},"homepage":"https://github.com/scottcorgan/toxic","devDependencies":{"tap-spec":"^1.0.1","tape":"^3.0.3"},"dependencies":{"lodash":"^4.17.10"},"gitHead":"c5fde5ed37e71e58288f2b87c512dbfa3e88aa3f","_id":"toxic@1.0.1","_npmVersion":"6.1.0","_nodeVersion":"8.9.1","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"integrity":"sha512-WI3rIGdcaKULYg7KVoB0zcjikqvcYYvcuT6D89bFPz2rVR0Rl0PK6x8/X62rtdLtBKIE985NzVf/auTtGegIIg==","shasum":"8c2e2528da591100adc3883f2c0e56acfb1c7288","tarball":"https://registry.npmjs.org/toxic/-/toxic-1.0.1.tgz","fileCount":5,"unpackedSize":5405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJAbeCRA9TVsSAnZWagAADNIP/1E5IN2lmRf/tNEjUbA4\nf52d8NeMMMrVVgv83yLgBcp57ZUOBXtXqrGYNsAl+MW7y+fyTyzCkJSjCbCr\nWgQyxgfVq0K1Vvrhw3L80G7ckcwekH7suV4zpMSsvtxbn/wRxmOIzw0+xE05\ncHboWa+z/oCpoMaATqDFyBzTGMuFnb8ODn+ds0Vh8buyfFh2DhXyi5ttG/rZ\nHne1HPCDvLWuWEG2SZDdgBFw6Ovot3m/RPhpqGegE0J/nM9Lje5Wstl+xfkT\nDJJsCoG86e0SruGTXFBg9uMGCN8YKuVkMUm7cynBOffbIqidXwl8nB1Umn1W\nPDmpKNUfX5jP3zLC2DC0Q1ahwQvIb7Ob0rQHyp+wAhdgYbWeMIyybWTNLRq0\n84u78TvpcTReAbnCmzQVu9N9h7vfFy10ahX+ZBtQllwLs5iozvYXdyEZCt08\nzE0WitB65VMhUMMImdM7p9x7Q8EtXgbyDEai13qAxt9UgPr0mDRcdMV50CYd\nL7PQtXNMhZRvXAB87My8+OKuimFXZMJlClGvKpdAHyoZMXGYS4LBLGSLGOq/\nW2A/EzEZu6pN9cq58dVVLccQMQ4ruUAPOK5zx74GBgTSPa9bv5CL3n4OLaKY\n1jIFevs5sJN1TEYeNGuzeQ1AWn8sGmZNIbfCtM1TQE3VD17KtaAFP6GO7osE\nGtqK\r\n=03mi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF79wewd5ozNAcdCIo2dN978qyEMy+t1QaNlpXNcBgeVAiEA/EipObFVTgpl2HdSBEhWkRCU+t2NE8lWoSAmMegHiV4="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toxic_1.0.1_1529087709629_0.44175591793907554"},"_hasShrinkwrap":false}},"readme":"# toxic\n\nMutate keys and values in objects. Returns a new version of the object\n\n## Install\n\n```\nnpm install toxic --save\n```\n\n## Usage\n\n```js\nvar toxic = require('toxic');\n\nvar mutatedObject = toxic({\n  key1: 'value1',\n  key2: 'value2'\n}, {\n  mutator: function (val) {\n    return val + '...'\n  }\n});\n\nconsole.log(mutatedObject);\n// OUTPUTS:\n// {\n//   'key1...': 'value1...',\n//   'key2...': 'value2...'\n// }\n```\n\n## API\n\n### toxic(object[, options])\n\n* `object` - The object to perform mutations on.\n* `options `\n  * `mutator` - Function that gets passed the current key or value. Default returns the value, as is.\n  * `keyMutator` - Function used ot mutate the keys. Overrides `mutator`.\n  * `valueMutator` - Function used ot mutate the values. Overrides `mutator`.\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2022-06-27T19:17:48.440Z","created":"2014-11-17T21:18:10.786Z","1.0.0":"2014-11-17T21:18:10.786Z","1.0.1":"2018-06-15T18:35:09.757Z"},"homepage":"https://github.com/scottcorgan/toxic","keywords":["globject","glob","minimatch","map","slash"],"repository":{"type":"git","url":"git+https://github.com/scottcorgan/toxic.git"},"author":{"name":"Scott Corgan"},"bugs":{"url":"https://github.com/scottcorgan/toxic/issues"},"license":"MIT","readmeFilename":"README.md"}