Popularity
2.8
Declining
Activity
3.2
Stable
12
2
6
Monthly Downloads: 17,660
Programming language: Elixir
License: Apache License 2.0
Tags:
BSON
Latest version: v1.0.0
cyanide alternatives and similar packages
Based on the "BSON" category.
Alternatively, view cyanide alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of cyanide or a related project?
README
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}}