CoastalCommitsPastes/server/node_modules/invert-kv
2022-03-06 16:46:59 -08:00
..
index.d.ts Initial commit 2022-03-06 16:46:59 -08:00
index.js Initial commit 2022-03-06 16:46:59 -08:00
license Initial commit 2022-03-06 16:46:59 -08:00
package.json Initial commit 2022-03-06 16:46:59 -08:00
readme.md Initial commit 2022-03-06 16:46:59 -08:00

invert-kv Build Status

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

Install

$ npm install invert-kv

Usage

const invertKeyValue = require('invert-kv');

invertKeyValue({foo: 'bar', '🦄': '🌈'});
//=> {bar: 'foo', '🌈': '🦄'}

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.