UNPKG

invert-kv

Version:

Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`

39 lines (38 loc) 727 B
{ "name": "invert-kv", "version": "4.2.0", "description": "Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`", "license": "MIT", "repository": "sindresorhus/invert-kv", "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" }, "files": [ "index.js", "index.d.ts" ], "keywords": [ "object", "key", "value", "invert", "keys", "values" ], "devDependencies": { "ava": "^3.15.0", "tsd": "^0.14.0", "xo": "^0.39.1" } }