Nightly Patch Machine

    json-bigi

    0.0.4 • Public • Published

    json-bigi

    Big number support in JSON

    var json = require("json-bigi")
    var obj = json.parse('{"age":13,"long_num":5229836185805052174}');
    // Object {age: 13, long_num: 5229836185805052174n}
     
    obj.long_num++;
     
    json.stringify(obj);
    // '{"age":13,"long_num":"5229836185805052175"}'
     

    Install

    npm i json-bigi

    DownloadsWeekly Downloads

    10

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    3.45 kB

    Total Files

    4

    Last publish

    Collaborators

    • pradeepmishra