2.0.5 • Published 3 months ago

sponge-case-commonjs v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Sponge Case

Transform into a string with random capitalization applied.

Installation

npm install sponge-case --save

Usage

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 NOT a pure ESM package and ships with TypeScript definitions. It CAN be require'd or used with CommonJS module resolution in TypeScript.

License

MIT