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-typesAPI
'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
}