0.2.3 • Published 2 months ago

lzo-ts v0.2.3

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 months ago

lzo.ts

a simple ~1.4 kB minified and gzipped implementation of the lzo1x codec written in TypeScript

Installation & Usage

Node.js

Install the package using your desired package manager.

lzo.ts is fully compatible with yarn, pnpm, deno and bun.

npm install lzo-ts
import { LZO } from 'lzo-ts';

const input = new TextEncoder().encode('Hello world!');

const compressed = LZO.compress(input);

const decompressed = LZO.decompress(compressed);

console.log(decompressed); // Returns "Hello world!"

Web environment

If you are using the library in a web environment, you can include it directly from a CDN of your choice.

<script src="https://www.unpkg.com/lzo-ts"></script>
<script>
	const { LZO } = lzoTs;

	LZO.compress(/*...*/);
	LZO.decompress(/*...*/);
</script>

Credits

Based on the efforts of

As well as the original work of Markus F.X.J. Oberhumer.

License

This project is licensed under the GPL-3.0 license, compatible with the original GPL-2.0 licensed code it utilizes.

0.2.1

2 months ago

0.2.3

2 months ago

0.2.2

2 months ago

0.2.0

2 months ago

0.1.2

2 months ago

0.1.7

2 months ago

0.1.4

2 months ago

0.1.3

2 months ago

0.1.6

2 months ago

0.1.5

2 months ago

0.1.1

2 months ago

0.1.0

2 months ago

1.0.0

2 months ago