{"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":"http://registry-npm.ywwl.com/toxic/download/toxic-1.0.0.tgz","integrity":"sha512-JtJdtZ2+8ZZLQZc2KLx2yqY4SLgpLzt90ocTrl1Ens7Vk+yv7MH9HUpyyif+06oYk+8u10nKgDNZbOmyO9gFfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY9joCp42tlm8EJOwXmxJQet8461c4SHj2LhoVJuT4tAiEAtJnvOrRXFLfCeYmkxhQ+krFSNU3CjKoKCu8pdEdDzQs="}],"size":2499,"noattachment":false,"key":"/toxic/-/toxic-1.0.0.tgz"},"directories":{},"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","publish_time":1416259090786,"_cnpm_publish_time":1416259090786,"dist-tags":{"latest":"1.0.1"}}