Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helium/erlang-multiaddr
Erlang implementation of multiaddr
https://github.com/helium/erlang-multiaddr
erlang multiaddr multiformats
Last synced: 3 months ago
JSON representation
Erlang implementation of multiaddr
- Host: GitHub
- URL: https://github.com/helium/erlang-multiaddr
- Owner: helium
- License: apache-2.0
- Created: 2017-10-30T23:44:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T15:11:54.000Z (over 6 years ago)
- Last Synced: 2024-04-14T17:00:28.380Z (9 months ago)
- Topics: erlang, multiaddr, multiformats
- Language: Erlang
- Size: 1.27 MB
- Stars: 8
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/helium/erlang-multiaddr.svg?branch=master)](https://travis-ci.org/helium/erlang-multiaddr)
[![Coverage Status](https://coveralls.io/repos/github/helium/erlang-multiaddr/badge.svg?branch=master)](https://coveralls.io/github/helium/erlang-multiaddr?branch=master)# erlang-multiaddr
An Erlang implementation for [multiaddr](https://github.com/multiformats/multiaddr).
## Usage
```
multiaddr:new("/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21")
```The encoder is idempotent:
```
Str = "/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21",
Str = multiaddr:to_string(multiaddr:new("/ip6/2601:9:4f81:9700:803e:ca65:66e8:c21")).
```