Skip to content
JS
Package

invert-kv

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

v4.2.0, 26 Feb 2022MITESM onlyTypes: Bundled
$ npm install invert-kv

Key numbers

As of 25 Sept 2026
Weekly downloads
6.1m
-8% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v4.2.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
02.5m5m7.5m10mSept 2025Mar 2026Sept 2026High 9m (25 Nov 2025)Low 2.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

6,070,141 downloads last week, 22,244,139 in the last month. The 12-month change of -8% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
08 in total
Latest version
4.2.0, 26 Feb 20224 years ago
First published
26 Jun 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v4 first release 4.0.0, 3 May 2021
  2. v3 first release 3.0.0, 30 Apr 2019
  3. v2 first release 2.0.0, 12 Jan 2018
  4. v1 first release 1.0.0, 13 Aug 2014
  5. v0 first release 0.1.0, 26 Jun 2014

Recent releases

VersionPublished
4.2.026 Feb 2022
4.1.07 Sept 2021
4.0.03 May 2021
3.0.115 May 2020
3.0.030 Apr 2019
2.0.012 Jan 2018
1.0.013 Aug 2014
0.1.026 Jun 2014
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
3.3 kB
Dependencies (0)
None
npm install invert-kv
  • jsDelivrhttps://cdn.jsdelivr.net/npm/invert-kv@4.2.0/
  • unpkghttps://unpkg.com/invert-kv@4.2.0/
  • esm.shhttps://esm.sh/invert-kv@4.2.0
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.