Super simple implementation of the Huffman algorithm in TypeScript.
import { Huffman } from 'https://denopkg.com/talentlessguy/huffman/index.ts'
const h = new Huffman()
const encoded = h.encode('Hello World')
const decoded = h.decode(encoded)
Super simple implementation of the Huffman algorithm in TyoeScript
TypeScript
Super simple implementation of the Huffman algorithm in TypeScript.
import { Huffman } from 'https://denopkg.com/talentlessguy/huffman/index.ts'
const h = new Huffman()
const encoded = h.encode('Hello World')
const decoded = h.decode(encoded)