An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# deno-snappy

[![stars](https://img.shields.io/github/stars/divy-work/deno-snappy)](https://github.com/divy-work/deno-snappy/stargazers)
[![issues](https://img.shields.io/github/issues/divy-work/deno-snappy)](https://github.com/divy-work/deno-snappy/issues)
![deno version](https://img.shields.io/badge/deno-1.0.3-success)
[![vr scripts](https://badges.velociraptor.run/flat.svg)](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://discordapp.com/api/guilds/715564894904123424/widget.png?style=banner2)](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.