@rinsuki/lz4-ts

This is a TypeScript port of https://github.com/pierrec/lz4.

Usage no npm install needed!

<script type="module">
  import rinsukiLz4Ts from 'https://cdn.skypack.dev/@rinsuki/lz4-ts';
</script>

README

lz4-ts

This is a TypeScript port of https://github.com/pierrec/lz4.

function calcUncompressedLen(src: Uint8Array): number;
function uncompressBlock(src: Uint8Array, dest: Uint8Array): number;
function compressBlockBound(n: number): number;
function compressBlock(src: Uint8Array, dest: Uint8Array, soffset: number): number;
function compressBlockHC(src: Uint8Array, dest: Uint8Array, soffset: number): number;

LICENSE

See LICENSE