Socket
Socket
Sign inDemoInstall

@gmod/binary-parser

Package Overview
Dependencies
1
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @gmod/binary-parser

Blazing-fast binary parser builder


Version published
Weekly downloads
519
increased by41.03%
Maintainers
5
Install size
233 kB
Created
Weekly downloads
 

Readme

Source

binary-parser

Greenkeeper badge Build Status codecov

@gmod/binary-parser is a fork of https://github.com/keichi/binary-parser that also handles 64-bit longs and itf8 and ltf8 types

Installation

Binary-parser can be installed with npm:

$ npm install @gmod/binary-parser

Important! Default this library is default little endian instead instead of big endian while https://github.com/keichi/binary-parser is default big endian

Example of reading a 64-bit int

.buffer('mylong64bitint', { length: 8, formatter: function(buf) { return Long.fromBytes(buf, true, this.endian==='le').toNumber() } })

Keywords

FAQs

Last updated on 08 Apr 2019

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