What is sponge-case?
The sponge-case npm package is a utility that allows users to convert strings to 'sponge case', a style of text where letters alternate between uppercase and lowercase, often used to convey a mocking tone in internet culture. This package provides a simple and efficient way to apply this transformation to any given string.
Convert string to sponge case
This feature allows users to convert a normal string into sponge case. It alternates the casing of each letter in the string, starting with lowercase.
const spongeCase = require('sponge-case');
console.log(spongeCase('hello world')); // Outputs: 'hElLo wOrLd'