object-int64

1.0.2 • Public • Published

object-int64

Handle all 64 bit two's-complement integer values which in object.

Install

npm i object-int64
 

Example

Origin data

const test = {
  name: 'test',
  id: 18446744073709551615
}

Without object-int64

 
// 18446744073709552000, get wrong number!
console.log(test.id)
 

With object-int64

const objectInt64 = require('object-int64');
 
const _test = objectInt64(test);
 
// 18446744073709551615
console.log(_test.id)
 

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i object-int64

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    1.62 kB

    Total Files

    3

    Last publish

    Collaborators

    • forthedamn