1.0.2 • Published 5 years ago

object-int64 v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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)