Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

champkeh/base64-vlq

Open more actions menu

Repository files navigation

base64-vlq

A base64 vlq encode/decode utils for source maps.

NOTE:
VLQ encoding here is different from described in wikipedia, vlq here is use sextet not octet.

NOTE 2:
This package is only support nodejs environment currently.

Install

npm i base64-vlq

Usage

const {base64VlqEncode, base64VlqDecode} = require('base64-vlq')

base64VlqEncode([ 0, 0, 16, 1 ]) // AAgBC
base64VlqDecode('AAgBC') // [ 0, 0, 16, 1 ]

base64VlqEncode([ 0 ]) // A
base64VlqDecode('A') // [ 0 ]

base64VlqEncode([ -0 ]) // B
base64VlqDecode('B') // [ -0 ]

Encoding

base64vlq编码原理

About

A base64 vlq encode/decode utils for source maps.

Topics

Resources

License

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.