JSPM

  • Created
  • Published
  • Downloads 10772477
  • Score
    100M100P100Q243727F
  • License MIT

Common token types for decoding and encoding binairy values

Package Exports

  • token-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 (token-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status NPM version npm downloads Dependencies coveralls

A primitive token library used to read from, and to write a node Buffer.

Tokens

node-strtok supports a wide variety of numerical tokens out of the box:

  • UINT8
  • UINT16_BE, UINT16_LE
  • UINT24_BE, UINT24_LE
  • UINT32_BE, UINT32_LE
  • INT8
  • INT16_BE, INT16_LE
  • INT24_BE, INT24_LE
  • INT32_BE, INT32_LE

String types:

  • Windows-1252
  • ISO-8859-1

One might notice that there is no support for 64-bit tokens, since JavaScript seems to limit value size to less than 2^64. Rather than wrapping up an additional math library to handle this, I wanted to stick with JavaScript primitives. Maybe this will change later if this becomes important.