JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q21904F
  • License ISC

helpers for binary-parser

Package Exports

  • binary-types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (binary-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

binary-types

helpers for binary-parser

Installation

npm install binary-types

API

'use strict'
module.exports = require('binary-parser')(parser)
var read = require('binary-types')

function* parser() {
  var value = yield* read.u8()
  return value
}

u8

u16le

u16be

u32le

u32be

what it says on the tin.

le

read.le =
  { __proto__: read
  , u16: read.u16le
  , u32: read.u32le
  }

be

read.be =
  { __proto__: read
  , u16: read.u16be
  , u32: read.u32be
  }