Nightly Pocket Measurement

    bjd

    0.3.2 • Public • Published

    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.

    Install

    npm i bjd

    DownloadsWeekly Downloads

    1

    Version

    0.3.2

    License

    Apache-2.0

    Unpacked Size

    33.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • fangqq