2 stable releases

1.0.1 Feb 15, 2024

#833 in Text processing

Download history 194/week @ 2024-02-15 23/week @ 2024-02-22 8/week @ 2024-02-29 42/week @ 2024-03-21 18/week @ 2024-03-28 2/week @ 2024-04-04

62 downloads per month

MIT license

11KB
210 lines

Spongebob

A utility to convert text to spongebob case a.k.a tHe MoCkInG sPoNgEbOb MeMe.

Cross-platform clipboard support for Windows, macOS, and Linux included.

Examples

The command randomizes the words by default and copies them to the clipboard:

spongebob hello world
# heLlO WoRld

You can also alternate with --alternate:

spongebob --alternate hello world
# hElLo WoRlD

You can disable the clipboard with --no-copy:

spongebob --no-copy hello world

Installation

cargo install spongebob

Library

Library functions are available to use in your own projects. See the documentation for more information.


lib.rs:

Functions to manipulate text in the style of the SpongeBob mocking meme.

Examples

use spongebob::alternate;
assert_eq!(alternate("Hello, world!"), "HeLlO, wOrLd!");

Dependencies

~2–14MB
~152K SLoC