# sponge-case

> Transform into a string with random capitalization applied

Latest version **2.0.3** (published 2024-01-14) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2024-01-14 |
| First published | 2020-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2406 |
| Author | Nate Rabins |
| Maintainers | blakeembrey |
| Keywords | random, randomize, spongebob, mocking, capital, case, convert, transform, capitalize |

## Links

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

## 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.3 (latest) — 2024-01-14
- 2.0.2 — 2023-10-20
- 2.0.1 — 2023-10-03
- 2.0.0 — 2023-09-30
- 1.0.1 — 2020-12-01
- 1.0.0 — 2020-03-16

## README

# Sponge Case

> Transform into a string with random capitalization applied.

## Installation

```
npm install sponge-case --save
```

## Usage

```js
import { spongeCase } from "sponge-case";

spongeCase("string"); //=> "sTrinG"
spongeCase("dot.case"); //=> "dOt.caSE"
spongeCase("PascalCase"); //=> "pASCaLCasE"
spongeCase("version 1.2.10"); //=> "VErSIoN 1.2.10"
```

## TypeScript and ESM

This package is a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) and ships with TypeScript definitions. It cannot be `require`'d or used with CommonJS module resolution in TypeScript.

## License

MIT

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