Skip to content
/ vlq Public

A compact text encoding for ints, used in sourcemaps

Notifications You must be signed in to change notification settings

lpil/vlq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VLQ

A compact text encoding for ints, used in sourcemaps.

Package Version Hex Docs

gleam add vlq@1
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, which was a reference for this library.

About

A compact text encoding for ints, used in sourcemaps

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages