invert-kv

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

v4.2.0 MIT 8 versions Maintained by sindresorhus
  • object
  • key
  • value
  • invert
  • keys
  • values
Weekly downloads
5.1M -13%
vs previous week
Last 30 days
22.7M
Stars

Downloads

Activity

70.9M total · Jun 5, 2026 – Sep 2, 2026

Versions

Downloads by version

Last 7 days

Releases

8 releases published since Jun 26, 2014

Issues

Pull requests