Skip to content

Implementation of ubjson as a common js module requiring only buffer.

License

Notifications You must be signed in to change notification settings

NeuroJSON/js-bjdata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Implementation of ubjson as a common js module requiring only buffer.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%