Table of Contents
Format Module
Format library used to generate printable output from decoded resp messages.
Component of the jsr library.
Install
npm i jsr-format
API
Convert responses to readable output:
var Format = Format fmt = ;fmt; // (error) ERRfmt; // (integer) 10fmt; // "foo"fmt; // OK
Convert the output of CLIENT LIST
to an array of objects:
var ListParser = ListParser lp = ;lp; // [{id: 1, age: 10}, {id: 2, age: 20}]
See the tests for more examples.
Developer
Test
Tests are not included in the package, clone the repository:
npm test
Documentation
To generate all documentation:
npm run docs
Readme
To build the readme file from the partial definitions (requires mdp):
npm run readme
License
Everything is MIT. Read the license if you feel inclined.
Generated by mdp(1).