Skip to content
BSON documents in Elixir language
Elixir
Branch: master
Clone or download
Pull request Compare This branch is 23 commits ahead of checkiz:master.
bettio Merge pull request #10 from rbino/add-encodable-map-type
cyanide: add encodable_map type
Latest commit b29af00 Jun 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Implement new Cyanide Mar 25, 2019
lib
test
.formatter.exs
.gitignore Create new empty project Feb 12, 2019
.travis.yml
LICENSE
README.md Implement new Cyanide Mar 25, 2019
mix.exs

README.md

Cyanide

Cyanide is a BSON library for Elixir.

Installation

The package can be installed by adding cyanide to your list of dependencies in mix.exs:

def deps do
  [
    {:cyanide, "~> 1.0"}
  ]
end

Usage

Cyanide.encode(%{"value" => 42})
#=> {:ok, <<16, 0, 0, 0, 16, 118, 97, 108, 117, 101, 0, 42, 0, 0, 0, 0>>}

Cyanide.decode(<<16, 0, 0, 0, 16, 118, 97, 108, 117, 101, 0, 42, 0, 0, 0, 0>>)
#=> {:ok, %{"value" => 42}}
You can’t perform that action at this time.