Skip to content
Elixir implementation of BaseHangul, the human-readable binary encoding
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

BaseHangul

Elixir implementation of BaseHangul, the human-readable binary encoding.

The original PHP implementation can be found here.

Usage

mix.exs:

def application do
    [applications: [ ... , :basehangul]]
end

defp deps do
    [ ... ,
     {:basehangul, "~> 0.9.0"},
      ... ]
end

BaseHangul.encode/1 and BaseHangul.decode/1 expect a binary as an argument.

iex> BaseHangul.encode("Hello, world!")
"낏뗐맸굉깖둠덱뮴닥땡결흐"
iex> BaseHangul.encode(<<0, 1, 2, 3, 4>>)
"가갚궁링"
iex> BaseHangul.decode("낏뗐맸굉깖둠덱뮴닥땡결흐")
"Hello, world!"
iex> BaseHangul.decode("가갚궁링")
<<0, 1, 2, 3, 4>>

Have fun!

License

WTFPL

Changelog

0.9.0 (8 February 2019)

  • Massive refactoring and overhaul.
  • Removed functions taking an IO device.

0.2.1 (12 April 2016)

  • Now the decoder raises an ArgumentError when invalid BaseHangul string is provided as an input.

0.2.0 (23 March 2016)

  • Added more encoder/decoder wrappers for the convenience.
  • Added library documentation.

0.1.0 (22 March 2016)

Initial development release. basehangul is now available on Hex.

nil (22 March 2016)

Initial commit.

You can’t perform that action at this time.