object-int64
v1.0.2
Published
Handle all 64 bit two's-complement integer values which in object.
Downloads
4
Readme
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)