huffman.js
v0.2.0
Published
[![npm version](https://badge.fury.io/js/huffman.js.png)](https://badge.fury.io/js/huffman.js) [![build status](https://travis-ci.org/jasonHzq/huffman.js.svg)](https://travis-ci.org/jasonHzq/huffman.js) [![npm downloads](https://img.shields.io/npm/dt/huff
Downloads
5
Readme
huffman.js
install
$ npm i -S huffman.js
Usage
import compress, { deCompress } from 'huffman.js';
const result = compress(cipher, 2);
// cipher is printable
console.log(result.cipher, result.keys);
const cipher = deCompress(result);
License
Copyright (c) 2015-2016 Recharts Group