Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danhper/jsurl_ex
https://github.com/danhper/jsurl_ex
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/danhper/jsurl_ex
- Owner: danhper
- Created: 2016-07-24T06:47:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-24T07:02:35.000Z (over 8 years ago)
- Last Synced: 2024-04-14T11:08:01.876Z (8 months ago)
- Language: Elixir
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JsurlEx
A module to encode/decode using [jsurl](https://github.com/Sage/jsurl) format.
NOTE: Only encoding is available now, as it is all I need for now,
I will work on decoding if someone needs it.## Installation
Add `jsurl_ex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:jsurl_ex, "~> 0.1.0"}]
end
```## Usage
```elixir
value = %{foo: "bar", bar: [1, 2, 3]}
JsurlEx.stringify(value) # => "~(bar~(~1~2~3)~foo~'bar)
```