Code Monkey home page Code Monkey logo

owoify_gleam's Introduction

owoify_gleam

Turning your worst nightmare into a Gleam package on Hex.

Package Version Hex Docs

This is a Gleam port of mohan-cao's owoify-js, which will help you turn any string into nonsensical babyspeak similar to LeafySweet's infamous Chrome extension.

Just like my other Owoify ports, three levels of owoness are available:

  1. owo (default): The most vanilla one.
  2. uwu: The moderate one.
  3. uvu: Litewawwy unweadabwal.

Please refer to the original owoify-js repository for more information.

Right now Gleam's stdlib doesn't have a comprehensive regular expression support. Thankfully, Gleam has wonderful support for Erlang FFI. Therefore, currently this library is just a thin wrapper of my owoify_erl.

Reason for development

Even though Gleam's Erlang FFI support is excellent, calling functions written in Erlang still requires you manually write external functions, which can be painstaking depending on how many external functions you want to call. Therefore, owoify_gleam is just a thin wrapper of my owoify_erl that does exactly that for you.

Also Gleam is cool! ๐Ÿ˜Œ

Installation

gleam add owoify_gleam

Usage

import gleam/io
import owoify_gleam

pub fn main() {
  owoify_gleam.owoify("This is the string to owo! Kinda cute isn't it?")
  |> io.println()

  owoify_gleam.owoify_with_level("This is the string to owo! Kinda cute isn't it?", owoify_gleam.Uvu)
  |> io.println()
}

// Possible output
// This is teh stwing two owo! Kinda cute isn't it?
// fwis is teh stwing two owowowouwu Kinda cute isn't it?

Further documentation can be found at https://hexdocs.pm/owoify_gleam.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

Disclaimer

As always, this package is written for practicing and bots' needs. Performance is NOT guaranteed.

That being said, PRs are always welcomed.

See also

  • owoify-js - The original owoify-js repository.
  • Owoify.Net - The C# port of Owoify written by me.
  • Owoify++ - The C++ header-only port of Owoify written by me.
  • owoify_rs - The Rust port of Owoify written by me.
  • owoify-py - The Python port of Owoify written by me.
  • owoify_dart - The Dart port of Owoify written by me.
  • owoify_rb - The Ruby port of Owoify written by me.
  • owoify-go - The Go port of Owoify written by me.
  • owoifySwift - The Swift port of Owoify written by me.
  • owoifyKt - The Kotlin port of Owoify written by me.
  • owoify_ex - The Elixir port of Owoify written by me.
  • owoify_cr - The Crystal port of Owoify written by me.
  • owoifynim - The Nim port of Owoify written by me.
  • owoify-clj - The Clojure port of Owoify written by me.
  • purescript-owoify - The PureScript port of Owoify written by me.
  • owoify-hs - The Haskell port of Owoify written by me.
  • owoify_erl - The Erlang port of Owoify written by me.

owoify_gleam's People

Contributors

deadshot465 avatar

Stargazers

Ruan G. Molinari avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.