fancy_mocker 0.1.0

A library for transforming text into alternating uppercase and lowercase letters, resembling the Spongebob Mock Meme.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 6.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • lewskii/fancy_mocker
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lewskii

Fancy mocker

A Rust library for transforming text into alternating uppercase and lowercase letters, resembling the Spongebob Mock Meme.

Inspired by my love for the meme, as well as a similar library by inxanedev, which unfortunately does not support the way I use the meme. To keep the output readable, I always set the letters 'L' and 'i' to uppercase and lowercase, respectively.

Example

printing "Hello, world!" in an alternating case:

extern crate fancy_mocker;

fn main() {
    let hello = "Hello, world!";
    let ironic_hello = fancy_mocker::mock(hello);

    println!("{}", ironic_hello);
}

> cargo run
HeLLo, WoRLd!