Socket
Socket
Sign inDemoInstall

@hazae41/binary

Package Overview
Dependencies
0
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hazae41/binary

Zero-copy Buffer reader and writer


Version published
Weekly downloads
13
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Zero-copy Buffer reader and writer 🏎️

npm i @hazae41/binary

Node Package 📦

Current features

  • 100% TypeScript and ESM
  • Zero-copy reading and writing
  • No external dependency
  • Unit tested

Usage

const binary = Binary.alloc(3)
const binary = Binary.allocUnsafe(3)
const binary = new Binary(Buffer.from([0x1, 0x2]))
binary.writeUint8(123)
binary.writeUint16(1234)

FAQs

Last updated on 15 Dec 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc