sponge-case
Transform into a string with random capitalization applied
Last updated 10 months ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install sponge-case 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.3                                ...           latest (10 months ago)

6 Versions

  • 2.0.3                                ...           10 months ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE