Packages

A compact text encoding for ints, used in sourcemaps

Current section

Files

Jump to
vlq README.md
Raw

README.md

# VLQ
A compact text encoding for ints, used in sourcemaps.
[![Package Version](https://img.shields.io/hexpm/v/vlq)](https://hex.pm/packages/vlq)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/vlq/)
```sh
gleam add vlq@1
```
```gleam
import vlq
pub fn main() -> Nil {
assert vlq.encode64([0, 0, 16, 1]) == "AAgBC"
assert vlq.decode64("AAgBC") == Ok([0, 0, 16, 1])
}
```
Documentation can be found at <https://hexdocs.pm/vlq>.
Thank you to Martin Janiczek's [elm-vlq](https://github.com/Janiczek/elm-vlq),
which was a reference for this library.