Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

A JavaScript utility function to convert a string into "Spongebob case".

Installation

npm i @jgarrow/spongebob-case

Usage

ES6 import

import { toSpongebobCase } from '@jgarrow/spongebob-case';

const myString = "This is a string.";
const spongebobString = toSpongebobCase(myString);

console.log(spongebobString); // "tHiS iS a StRiNg."

CommonJS require

const { toSpongebobCase } = require('@jgarrow/spongebob-case');

const myString = "This is a string.";
const spongebobString = toSpongebobCase(myString);

console.log(spongebobString); // "tHiS iS a StRiNg."

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages