Emojify helps you spread chaos by replacing function and variable names in your code with random emoji. The output is still valid Julia code.

Emojify your code

You can use either a string with Julia code as input, or a file path. If a file path is given, all files referenced with include() will also be emojified. If your code defines modules, module names, names of exported functions, and keyword arguments of exported functions will not be emojified.

For example,

using Emojify
function ฯ‰(x::AbstractVector{<:Number}, i::Unsigned, z::Number)
    y = 1
    for j in 1:i
        y *= (z - x[j])
ฯ‰(x::AbstractVector{<:Number}, i::Number, z::Number) = ฯ‰(x, unsigned(i), z)

will return

function ๐Ÿ–ด(๐Ÿ•ผ::AbstractVector{<:Number}, ๐Ÿ‘–::Unsigned, ๐Ÿ“„::Number)
    ๐Ÿ–… = 1
    for ๐Ÿ–ฅ in 1:๐Ÿ‘–
        ๐Ÿ–… *= (๐Ÿ“„ - ๐Ÿ•ผ[๐Ÿ–ฅ])
๐Ÿ–ด(๐Ÿ•ผ::AbstractVector{<:Number}, ๐Ÿ‘–::Number, ๐Ÿ“„::Number) = ๐Ÿ–ด(๐Ÿ•ผ, unsigned(๐Ÿ‘–), ๐Ÿ“„)

To emojify a file, use

emojify("path_to_input_file.jl", "path_to_output_directory")

You can also pass a Vector{Char} as the last argument to use instead of the default emoji:

emojify("path_to_input_file.jl", "path_to_output_directory", Char.(0x02107:0x0214A))

Emojifying calls to base Julia functions

To achieve absolute chaos, I recommend using this package together with WatchJuliaBurn.jl.