node-int64
npmv0.4.0Support for representing 64-bit integers in JavaScript
Not recommended for new projects
No — node-int64 should not be adopted for new projects. Last published 4177 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 4177 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding node-int64 to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the node-int64 README.
// First, let's illustrate the problem ...
> (0x123456789).toString(16)
'123456789' // <- what we expect.
> (0x123456789abcdef0).toString(16)
'123456789abcdf00' // <- Ugh! JS doesn't do big ints. :(
// So let's create a couple Int64s using the above values ...
// Require, of course
> Int64 = require('node-int64')
// x's value is what we expect (the decimal value of 0x123456789)
> x = new Int64(0x123456789)
[Int64 value:4886718345 octets:00 00 00 01 23 45 67 89]node-int64 vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| node-int64this page | 0 | 1 | MIT | 11 years ago |
| long | 78.6M | 1 | Apache-2.0 | 1 day ago |
| big-integer | 0 | 1 | Unlicense | 1 day ago |
| jsbn | 14.5M | 2 | MIT | 1 day ago |
| is-bigint | 0 | 1 | MIT | 1 day ago |
| @xtuc/long | 0 | 3 | Apache-2.0 | 1 day ago |
Dependencies
Declared by node-int64 v0.4.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (1)
Used by
Popular packages that depend on node-int64.
Relationship graph
Dependencies (left) and dependents (right) of node-int64.
Release history
No releases in the last two years, typically about 106 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.4.0latest | 11 years ago | — | MIT |
| 0.3.3 | 11 years ago | — | MIT |
| 0.3.2 | 11 years ago | — | MIT |
| 0.3.1 | 12 years ago | — | MIT |
| 0.3.0 | 15 years ago | — | MIT |
| 0.2.0 | 15 years ago | — | MIT |
| 0.1.0 | 15 years ago | — | MIT |
Overview
node-int64 is an npm package that support for representing 64-bit integers in JavaScript. It has 1 known dependents in the graph. The latest version is 0.4.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need support for representing 64-bit integers in JavaScript and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (1 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use node-int64?
No — node-int64 should not be adopted for new projects. Last published 4177 days ago.
How do I install node-int64?
Run `npm install node-int64` to add node-int64 to your npm project.
What license is node-int64 released under?
node-int64 is distributed under the MIT license.
How popular is node-int64?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on node-int64.
Is node-int64 still maintained?
The most recent release of node-int64 (v0.4.0) was published 11 years ago.
Does node-int64 run install scripts?
No. node-int64 does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.