Skip to content
JS
Package

swap-case

Transform a string by swapping every character from upper to lower case, or lower to upper case

v3.0.3, 14 Jan 2024MITESM onlyTypes: Bundled
$ npm install swap-case

Key numbers

As of 25 Sept 2026
Weekly downloads
7.9m
+49% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v3.0.3
GitHub stars
-
Open issues / PRs
- / -
Contributors
25
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 11.8m (21 Jul 2026)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.

7,902,208 downloads last week, 36,191,555 in the last month. The 12-month change of +49% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
014 in total
Latest version
3.0.3, 14 Jan 20242 years ago
First published
24 Mar 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
45

Major versions

  1. v3 first release 3.0.0, 30 Sept 2023
  2. v2 first release 2.0.0, 1 Dec 2019
  3. v1 first release 1.0.0, 17 Aug 2014
  4. v0 first release 0.0.1, 24 Mar 2014

Recent releases

VersionPublished
3.0.314 Jan 2024
3.0.220 Oct 2023
3.0.13 Oct 2023
3.0.030 Sept 2023
2.0.22 Dec 2020
2.0.16 Dec 2019
2.0.01 Dec 2019
1.1.216 Dec 2015
1.1.111 May 2015
1.1.012 Jan 2015
1.0.223 Aug 2014
1.0.117 Aug 2014
1.0.017 Aug 2014
0.0.124 Mar 2014
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
2.7 kB
Dependencies (0)
None
npm install swap-case
  • jsDelivrhttps://cdn.jsdelivr.net/npm/swap-case@3.0.3/
  • unpkghttps://unpkg.com/swap-case@3.0.3/
  • esm.shhttps://esm.sh/swap-case@3.0.3
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

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