{"_id":"invert-kv","_rev":"3670333","name":"invert-kv","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","dist-tags":{"latest":"4.2.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-02-13T05:40:56.000Z","created":"2014-06-26T20:09:53.471Z","4.2.0":"2022-02-26T06:59:52.542Z","4.1.0":"2021-09-07T06:39:05.561Z","4.0.0":"2021-05-03T11:15:34.054Z","3.0.1":"2020-05-15T18:02:56.530Z","3.0.0":"2019-04-30T04:21:59.345Z","2.0.0":"2018-01-12T14:50:49.979Z","1.0.0":"2014-08-13T19:22:00.751Z","0.1.0":"2014-06-26T20:09:53.471Z"},"users":{"seangenabe":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"versions":{"4.2.0":{"name":"invert-kv","version":"4.2.0","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"funding":"https://github.com/sindresorhus/invert-kv?sponsor=1","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","key","value","invert","keys","values"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"types":"./index.d.ts","gitHead":"65c40d0b69215480469660e98750bd749c60cf31","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@4.2.0","_nodeVersion":"14.19.0","_npmVersion":"8.3.2","dist":{"shasum":"0b7f8a911374d50420e5a763aa57a4ea8703b2b6","size":1866,"noattachment":false,"key":"/invert-kv/-/invert-kv-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-4.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv_4.2.0_1645858792412_0.9359381623512659"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-26T06:59:55.746Z","publish_time":1645858792542,"_cnpm_publish_time":1645858792542},"4.1.0":{"name":"invert-kv","version":"4.1.0","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"funding":"https://github.com/sindresorhus/invert-kv?sponsor=1","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","key","value","invert","keys","values"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"9f03118888cbdb851fe4eea329346e0f2490b01d","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@4.1.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"7cd33a27981553976ac661e1916adaab28b0044d","size":1865,"noattachment":false,"key":"/invert-kv/-/invert-kv-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-4.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv_4.1.0_1630996745451_0.427184461440294"},"_hasShrinkwrap":false,"publish_time":1630996745561,"_cnpm_publish_time":1630996745561},"4.0.0":{"name":"invert-kv","version":"4.0.0","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"funding":"https://github.com/sindresorhus/invert-kv?sponsor=1","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","key","value","invert","keys","values"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"4598fbd470623b0780c19c9629971de8692195d8","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"745b790ac45d16ac40281e6b1938874171cb6a2a","size":1936,"noattachment":false,"key":"/invert-kv/-/invert-kv-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv_4.0.0_1620040533898_0.6383503697263369"},"_hasShrinkwrap":false,"publish_time":1620040534054,"_cnpm_publish_time":1620040534054},"3.0.1":{"name":"invert-kv","version":"3.0.1","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"funding":"https://github.com/sindresorhus/invert-kv?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","key","value","invert","keys","values"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"11d03f0a4a9ec8ee23e90211340ec60e830c12b8","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@3.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a93c7a3d4386a1dc8325b97da9bb1620c0282523","size":2010,"noattachment":false,"key":"/invert-kv/-/invert-kv-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv_3.0.1_1589565776437_0.5620579618419927"},"_hasShrinkwrap":false,"publish_time":1589565776530,"_cnpm_publish_time":1589565776530},"3.0.0":{"name":"invert-kv","version":"3.0.0","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","key","value","invert","keys","values"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"6c9c1e2f1de02aa2fb31988160b47ad7c90215d6","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9db0c4817a1ec754df8067df6acf6828286f6a84","size":1767,"noattachment":false,"key":"/invert-kv/-/invert-kv-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv_3.0.0_1556598119227_0.9875138901557359"},"_hasShrinkwrap":false,"publish_time":1556598119345,"_cnpm_publish_time":1556598119345},"2.0.0":{"name":"invert-kv","version":"2.0.0","description":"Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/invert-kv.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["object","key","value","kv","invert"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"813edf6e4435aa1744bf219cdf25c1333153558f","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv#readme","_id":"invert-kv@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7393f5afa59ec9ff5f67a27620d11c226e3eec02","size":1469,"noattachment":false,"key":"/invert-kv/-/invert-kv-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invert-kv-2.0.0.tgz_1515768649048_0.9197583636268973"},"directories":{},"publish_time":1515768649979,"_hasShrinkwrap":false,"_cnpm_publish_time":1515768649979},"1.0.0":{"name":"invert-kv","version":"1.0.0","description":"Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/invert-kv"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","key","value","val","kv","invert"],"devDependencies":{"mocha":"*"},"gitHead":"c28c3a15abcde3f67bd90f90f8ffe54a5f8cb04e","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv","_id":"invert-kv@1.0.0","_shasum":"104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6","size":833,"noattachment":false,"key":"/invert-kv/-/invert-kv-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-1.0.0.tgz"},"directories":{},"publish_time":1407957720751,"_cnpm_publish_time":1407957720751,"_hasShrinkwrap":false},"0.1.0":{"name":"invert-kv","version":"0.1.0","description":"Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/invert-kv"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","key","value","val","kv","invert"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"homepage":"https://github.com/sindresorhus/invert-kv","_id":"invert-kv@0.1.0","_shasum":"4638ea2a63c8362311d84cc01a5ac6cccb12a541","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"4638ea2a63c8362311d84cc01a5ac6cccb12a541","size":827,"noattachment":false,"key":"/invert-kv/-/invert-kv-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/invert-kv/download/invert-kv-0.1.0.tgz"},"directories":{},"publish_time":1403813393471,"_cnpm_publish_time":1403813393471,"_hasShrinkwrap":false}},"readme":"# invert-kv\n\n> Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`\n\n## Install\n\n```\n$ npm install invert-kv\n```\n\n## Usage\n\n```js\nimport invertKeyValue from 'invert-kv';\n\ninvertKeyValue({foo: 'bar', '????': '????'});\n//=> {bar: 'foo', '????': '????'}\n```\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-invert-kv?utm_source=npm-invert-kv&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/invert-kv#readme","bugs":{"url":"https://github.com/sindresorhus/invert-kv/issues"},"license":"MIT"}