2 stable releases
1.0.1 | Feb 15, 2024 |
---|
#833 in Text processing
62 downloads per month
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