Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/probably-not/jiffy_ex
An Elixir Module that wraps the Erlang jiffy library.
https://github.com/probably-not/jiffy_ex
elixir elixir-lang erlang jiffy json
Last synced: 6 days ago
JSON representation
An Elixir Module that wraps the Erlang jiffy library.
- Host: GitHub
- URL: https://github.com/probably-not/jiffy_ex
- Owner: probably-not
- License: mit
- Created: 2019-06-11T05:43:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T20:15:34.000Z (over 3 years ago)
- Last Synced: 2024-10-30T16:56:08.790Z (16 days ago)
- Topics: elixir, elixir-lang, erlang, jiffy, json
- Language: Elixir
- Size: 11.7 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JiffyEx
An Elixir Module that wraps the Erlang jiffy library.
Provides `encode!/1`, `encode!/2`, `encode/1`, `encode/2`, `decode!/1`, `decode!/2`, `decode/1`, `decode/2` functions for encoding and decoding JSON values.
**NOTE: The jiffy functions by default all raise exceptions, so by definition the `encode!` and `decode!` functions will be faster as they are not wrapped in try/rescue clauses in order to catch any errors that come out of the jiffy library.**
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `jiffy_ex` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:jiffy_ex, "~> 1.1"}
]
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/jiffy_ex](https://hexdocs.pm/jiffy_ex).