</>PackageGraphPackageGraph

long

npmv5.3.2TypeScript

A Long class for representing a 64-bit two's-complement integer value.

Adopt with care

long is usable, with caveats. Last published 510 days ago. 5 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    78.6M downloads per week and 1 known dependents.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 510 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 136 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    Apache-2.0 — 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 long to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

136 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the long README.

import Long from "long";

var value = new Long(0xFFFFFFFF, 0x7FFFFFFF);
console.log(value.toString());
...

long vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
longthis page78.6M1Apache-2.01 year ago
node-int6401MIT1 day ago
@xtuc/long03Apache-2.01 day ago
big-integer01Unlicense1 day ago
anynum01MIT1 day ago
@hapi/formula01BSD-3-Clause1 day ago

Dependencies

Declared by long v5.3.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

esm2umd ^0.3.1prettier ^3.5.0typescript ^5.7.3

Used by

Popular packages that depend on long.

Relationship graph

Dependencies (left) and dependents (right) of long.

mysql2long
long dependencies dependents

Frequently installed together

Release history

5 releases in the last two years, typically about 31 days apart.

Recent versions of long
VersionPublishedSizeLicense
5.3.2latest1 year ago136 KBApache-2.0
5.3.11 year ago136 KBApache-2.0
5.3.01 year ago121 KBApache-2.0
5.2.51 year ago116 KBApache-2.0
5.2.41 year ago116 KBApache-2.0
5.2.33 years ago116 KBApache-2.0
5.2.23 years ago116 KBApache-2.0
5.2.13 years ago116 KBApache-2.0
5.2.04 years ago116 KBApache-2.0
5.1.04 years ago112 KBApache-2.0
5.0.14 years ago70 KBApache-2.0
5.0.04 years ago70 KBApache-2.0
4.0.08 years agoApache-2.0
3.2.010 years agoApache-2.0
3.1.010 years agoApache-2.0

Overview

long is an npm package that a Long class for representing a 64-bit two's-complement integer value. It is extremely widely used, with about 78.6M downloads per week and 1 known dependents in the graph. The latest version is 5.3.2, released under the Apache-2.0 license.

Who should use it

Teams working in the npm ecosystem who need a Long class for representing a 64-bit two's-complement integer value and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (78.6M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (Apache-2.0).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use long?

long is usable, with caveats. Last published 510 days ago. 5 releases in the last 2 years.

How do I install long?

Run `npm install long` to add long to your npm project.

What license is long released under?

long is distributed under the Apache-2.0 license.

How popular is long?

long has approximately 78,615,790 downloads per week and 1 known dependent packages.

Is long still maintained?

The most recent release of long (v5.3.2) was published 1 year ago.

Does long run install scripts?

No. long does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.