datalad-course/node_modules/invert-kv
2025-03-21 15:28:44 +01:00
..
index.js A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
package.json A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00
readme.md A new start for all of Adina's DataLad Course talks - properly annexed 2025-03-21 15:28:44 +01:00

invert-kv Build Status

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

Install

$ npm install --save invert-kv

Usage

var invertKv = require('invert-kv');

invertKv({foo: 'bar', unicorn: 'rainbow'});
//=> {bar: 'foo', rainbow: 'unicorn'}

License

MIT © Sindre Sorhus