invert-kv : Invert the key/value of an object. Example: {foo: bar} ? {bar: foo}. You can installing invert-kv npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install invert-kv $ sudo npm install -g invert-kv
If want to update the invert-kv package execute the command as below,
$ sudo npm update invert-kv
Update package globally,
$ npm install -g invert-kv
$ sudo git clone https://github.com/rektide/invert-kv.git
$ sudo npm install -g ./invert-kv
invert-kv@1.0.0 /usr/lib/node_modules/invert-kv
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall invert-kv
| Package Name | invert-kv |
| Version | 1.0.0 |
| Description | Invert the key/value of an object. Example: {foo: bar} ? {bar: foo} |
| Released Date | 2014-08-13T19:22:00.751Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/invert-kv/tutorial |