New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

object-int64

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-int64

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

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

long

FAQs

Package last updated on 18 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts