bjd
v0.3.2
Published
js-bjata is a lightweight Binary JData (BJData) encoder and decoder for JavaScript and NodeJS
Downloads
21
Maintainers
Readme
bjdata.js - BJData Encoder/Decoder for JavaScript and NodeJS
UBJSON-derived BJData encoder and decoder for JavaScript and Node.js.
Check out the Github repo for the source code. Visit module site for API docs and examples. Extra information available in wiki.
Installation
To use the bjdata.js
module in node.js applications, you must first install this module via
npm install bjd
Usage example
For NodeJS applications,
var bjd = require("bjd")
let data={integer:1,shortarray:[1,2,3],object:[[[1],[2],[3]],null,false]};
let buf = bjd.encode(data);
let newdata = bjd.decode(buf)[0];
console.log(newdata)
Contributing
To contribute any patches, simply fork this repository using GitHub and send a pull request to this project. Thanks!
License
Apache 2.0 license. See license text in file LICENSE.