Package
constant-case
Transform into upper case string with an underscore between words
Deprecated on npm
Use `change-case`Key numbers
As of 25 Sept 2026
- Weekly downloads
- 9.2m
- +26% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 2 years ago
- v4.0.0
- GitHub stars
- 2.4k
- 108 forks
- Open issues / PRs
- 12 / 6
- Contributors
- 25
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
9,220,699 downloads last week, 47,097,722 in the last month. The 12-month change of +26% 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
- 4.0.0, 30 Sept 20232 years ago
- First published
- 24 Mar 2014
- Last push to GitHub
- 17 Jun 2025464 days before the snapshot
- Repository archived
- No
- Open issues
- 12
- Open pull requests
- 6
- Commits, last 52 weeks
- 0
- Dependents on npm
- -
Major versions
- v4 first release 4.0.0, 30 Sept 2023
- v3 first release 3.0.0, 1 Dec 2019
- v2 first release 2.0.0, 12 Jun 2016
- v1 first release 1.0.0, 17 Aug 2014
- v0 first release 0.0.1, 24 Mar 2014
Recent releases
| Version | Published |
|---|---|
| 4.0.0 | 30 Sept 2023 |
| 3.0.4 | 2 Dec 2020 |
| 3.0.3 | 19 Dec 2019 |
| 3.0.2 | 6 Dec 2019 |
| 3.0.1 | 3 Dec 2019 |
| 3.0.0 | 1 Dec 2019 |
| 2.0.0 | 12 Jun 2016 |
| 1.1.2 | 16 Dec 2015 |
| 1.1.1 | 11 May 2015 |
| 1.1.0 | 12 Jan 2015 |
| 1.0.0 | 17 Aug 2014 |
| 0.1.0 | 9 Apr 2014 |
| 0.0.2 | 25 Mar 2014 |
| 0.0.1 | 24 Mar 2014 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 2.5 kB
- Dependencies (1)
no-case
npm install constant-case- jsDelivr
https://cdn.jsdelivr.net/npm/constant-case@4.0.0/ - unpkg
https://unpkg.com/constant-case@4.0.0/ - esm.sh
https://esm.sh/constant-case@4.0.0
Indexability: Not indexed (discovery only): deprecated.