Lempel-Ziv-Welch decompression algorithm used in Sierra On-line SCI-engine games.

import { Lzw } from '@4bitlabs/codecs';

const encodedBytes = Uint8Array.of(/* encoded data */);
const bytes = Lzw.unpack(encodedBytes);