{"_id":"invert-hash","_rev":"4576659","name":"invert-hash","description":"Inverts an object hash","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"time":{"modified":"2026-04-10T15:44:53.000Z","created":"2013-04-16T17:14:35.221Z","0.0.0":"2013-04-16T17:14:35.221Z"},"users":{},"author":{"name":"Mikola Lysenko"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/invert-hash.git"},"versions":{"0.0.0":{"name":"invert-hash","version":"0.0.0","description":"Inverts an object hash","main":"invert.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"~0.4.1"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/invert-hash.git"},"keywords":["invert","hash","object","dictionary","inverse"],"author":{"name":"Mikola Lysenko"},"license":"MIT","readmeFilename":"README.md","gitHead":"62d7020ba76f19cf70c0cc651e64ad2931c47366","_id":"invert-hash@0.0.0","dist":{"shasum":"754159aa8bf9fe08be1f1dca141787b7ab64fa77","size":1128,"noattachment":false,"key":"/invert-hash/-/invert-hash-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-hash/download/invert-hash-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"publish_time":1366132475221,"_hasShrinkwrap":false,"_cnpm_publish_time":1366132475221,"_cnpmcore_publish_time":"2021-12-16T11:25:58.362Z"}},"readme":"invert-hash\n===========\nComputes the inverse of a hash, assuming that it is bijective.\n\n# Example\n\n```javascript\n\nvar invert = require(\"invert-hash\")\n\nconsole.log(invert({\n  'a': 1,\n  'b': 2,\n  'c': 3\n}))\n\n//Prints out:\n//\n//  {\n//    1: 'a',\n//    2: 'b',\n//    3: 'c'\n//  }\n//\n```\n\n# Install\n\n    npm install invert-hash\n\n### `require(\"invert-hash\")(obj)`\nComputes the inverse of a hash\n\n* `obj` is a hash object\n\n**Returns** An object whose keys are the values of `obj` and whose values are the `keys` of object.\n\n# Credits\n(c) 2013 Mikola Lysenko. MIT License\n","_attachments":{},"readmeFilename":"README.md","license":"MIT"}