0.1.1 • Published 6 years ago

@lewistg/base64-vlq-codec v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Base64 VLQ Codec

This is a minimalist library for decoding and encoding base64 VLQs. This repository is also a companion to this blog post, which also explains base64 VLQs.

Usage

In TypeScript:

import {base64VlqEncode, base64VlqDecode} from '@lewistg/base64-vlq-codec';

base64VlqEncode([1776, -2387, 2121809, 8, 1820, -8121988]); // 'gvDn1EilwhEQ4xDpo3vP'

base64VlqDecode('uDt7D0TkuK'); // [55, -1974, 314, 5346]

Installation

$ npm install --save-dev '@lewistg/base64-vlq-codec'
0.1.1

6 years ago

0.1.0

6 years ago