# capital-case-r2

> Additional JS `String.prototype` function.

Latest version **2.0.0** (published 2024-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install capital-case-r2
pnpm add capital-case-r2
yarn add capital-case-r2
bun add capital-case-r2
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-05-26 |
| First published | 2023-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sahachai Y. |
| Maintainers | b5730200811 |
| Keywords | string, capital-case |

## Links

- npm: https://www.npmjs.com/package/capital-case-r2
- npm.io page: https://npm.io/package/capital-case-r2

## 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

- 2.0.0 (latest) — 2024-05-26
- 1.0.1 — 2023-02-20
- 1.0.0 — 2023-02-08

## README

# capital-case-r2

Additional JS `String.prototype` method.

## Try it

https://daddybannk.github.io/capital-case-r2

## Installation

```
npm install capital-case-r2
```

## Usage

### String.toCapitalCase(ignoreCase = true)

```
import "capital-case-r2";

const str = "This word is UPPER CASE.";

// ignoreCase = true (default)
console.log(str.toCapitalCase()); // "This Word Is UPPER CASE."

// ignoreCase = false
console.log(str.toCapitalCase(false)); // "This Word Is Upper Case."
```

## Test

```
npm install --only=dev
npm run test
```

## License

This project is licensed under the terms of the MIT license.

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