sponge-case
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    139,088
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    139,088
  • 2.0.2
    16,075
  • 2.0.1
    1
  • 2.0.0
    1
  • 1.0.1
    2,725,198
  • 1.0.0
    4

Package Sidebar

Install

npm i sponge-case

Weekly Downloads

2,338,299

Version

2.0.3

License

MIT

Unpacked Size

2.86 kB

Total Files

5

Last publish

Collaborators

  • blakeembrey