Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hysnappy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hysnappy

snappy decompressor for wasm

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.4K
increased by8.64%
Maintainers
1
Weekly downloads
 
Created
Source

HySnappy

hysnappy penguin

npm workflow status mit license dependencies

Snappy decompression with WebAssembly.

A fast, minimal snappy decompression implementation built for WASM.

Usage

import { snappyUncompress } from 'hysnappy'

const compressed = new Uint8Array([
  0x0a, 0x24, 0x68, 0x79, 0x70, 0x65, 0x72, 0x70, 0x61, 0x72, 0x61, 0x6d
])
const output = new Uint8Array(10)
await snappyUncompress(compressed, output)

Development

Run make to build from source.

Compiles from snappy.c to hysnappy.wasm using clang. Then encodes hysnappy.wasm as base64 to hysnappy.wasm.base64, and inserts the base64 string into hysnappy.js for distribution.

References

Keywords

FAQs

Package last updated on 19 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc