Skip to content

j8r/js-byte-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-byte-format

CI ISC

Encode/decode JavaScript datatypes (String, Number, Object) to/from bytes.

A use-case is sending/receiving bytes through WebSockets, which is more efficient than using JSON strings.

Installation

npm install --save git+ssh://git@github.com/j8r/js-byte-format.git

Usage

See tests for decoder and encoder.

Run tests

node --unhandled-rejections=strict test

An exit 0 means all tests have passed with success, otherwise an exception will be printed and a exit 1 returned.

License

Copyright (c) 2020-2021 Julien Reichardt - ISC License

About

Encode/decode JavaScript datatypes (String, Number, Object) to/from bytes

Resources

License

Stars

Watchers

Forks

Packages

No packages published