# constant-case

> Transform into upper case string with an underscore between words

Latest version **4.0.0** (published 2023-09-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install constant-case
pnpm add constant-case
yarn add constant-case
bun add constant-case
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2023-09-30 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/constant-case) |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2404 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | constant, case, upper, uppercase, underscore, convert, transform |

## Links

- npm: https://www.npmjs.com/package/constant-case
- Repository: https://github.com/blakeembrey/change-case
- Homepage: https://github.com/blakeembrey/change-case/tree/master/packages/constant-case#readme
- Issues: https://github.com/blakeembrey/change-case/issues
- npm.io page: https://npm.io/package/constant-case

## Dependencies (1)

- [no-case](https://npm.io/package/no-case.md) ^4.0.0

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2023-09-30
- 3.0.4 — 2020-12-02
- 3.0.3 — 2019-12-19
- 3.0.2 — 2019-12-06
- 3.0.1 — 2019-12-03
- 3.0.0 — 2019-12-01
- 2.0.0 — 2016-06-12
- 1.1.2 — 2015-12-16
- 1.1.1 — 2015-05-11
- 1.1.0 — 2015-01-12
- 1.0.0 — 2014-08-17
- 0.1.0 — 2014-04-09
- 0.0.2 — 2014-03-25
- 0.0.1 — 2014-03-24

## README

# Constant Case

> Transform into upper case string with an underscore between words.

## Installation

```
npm install constant-case --save
```

## Usage

```js
import { constantCase } from "constant-case";

constantCase("string"); //=> "STRING"
constantCase("dot.case"); //=> "DOT_CASE"
constantCase("PascalCase"); //=> "PASCAL_CASE"
constantCase("version 1.2.10"); //=> "VERSION_1_2_10"
```

The function also accepts [`options`](https://github.com/blakeembrey/change-case#options).

## License

MIT

---
_Source: https://npm.io/package/constant-case · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
