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.
To use the bjdata.js
module in node.js applications, you must first install this module via
npm install bjd
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)
To contribute any patches, simply fork this repository using GitHub and send a pull request to this project. Thanks!
Apache 2.0 license. See license text in file LICENSE.