https://github.com/littledivy/deno-snappy
Google's Snappy Compression/Decompression for Deno.
https://github.com/littledivy/deno-snappy
compress decompress rust snap snappy ts wasm
Last synced: about 1 year ago
JSON representation
Google's Snappy Compression/Decompression for Deno.
- Host: GitHub
- URL: https://github.com/littledivy/deno-snappy
- Owner: littledivy
- License: mit
- Created: 2020-06-14T08:38:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T03:47:29.000Z (almost 6 years ago)
- Last Synced: 2025-05-09T00:53:42.090Z (about 1 year ago)
- Topics: compress, decompress, rust, snap, snappy, ts, wasm
- Language: TypeScript
- Size: 40 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno-snappy
[](https://github.com/divy-work/deno-snappy/stargazers)
[](https://github.com/divy-work/deno-snappy/issues)

[](https://velociraptor.run)
Fast Snappy Compression/Decompression for Deno.
## Example
```typescript
import { compress } from 'https://x.nest.land/snappy@0.0.3/mod.ts';
let text = new TextEncoder().encode("Hello, World!");
compress(text);
```
#### Join Discord
[](https://discord.gg/uqywa4W)
## Building from source
### Prerequisites
- [deno](https://deno.land/)
- [rust](https://www.rust-lang.org/)
- [wasm-pack](https://rustwasm.github.io/wasm-pack/)
## Building
```bash
$ deno run -A scripts/build.ts
```
## Testing
Requires `wasm.js` to be built first.
```bash
$ deno test
```
### Contribution
Pull request, issues and feedback are very welcome. Code style is formatted with `deno fmt` and commit messages are done following [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec.
### Licence
Copyright 2020, Divy Srivastava. All rights reserved. MIT license.