</>PackageGraphPackageGraph

nan

npmv2.28.0

Native Abstractions for Node.js: C++ header for Node 0.8 -> 26 compatibility

Safe to adopt

Yes — nan scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 76 days ago. 13 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 76 days ago. 13 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 446 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • 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 nan 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.

446 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
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the nan README.

"include_dirs" : [
    "<!(node -e \"require('nan')\")"
]

Dependencies

Declared by nan v2.28.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

bindings ~1.2.1commander ^2.8.1glob ^5.0.14node-gyp ~12.1.0readable-stream ^2.1.4request =2.81.0tap ~0.7.1xtend ~4.0.0

Used by

Popular packages that depend on nan.

Relationship graph

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

node-sasslibpqnan
nan dependencies dependents

Frequently installed together

Release history

11 releases in the last two years, typically about 98 days apart.

Recent versions of nan
VersionPublishedSizeLicense
2.28.0latest2 months ago446 KBMIT
2.27.04 months ago444 KBMIT
2.26.25 months ago443 KBMIT
2.26.15 months ago442 KBMIT
2.26.05 months ago442 KBMIT
2.25.07 months ago442 KBMIT
2.24.09 months ago438 KBMIT
2.23.110 months ago436 KBMIT
2.23.01 year ago435 KBMIT
2.22.21 year ago434 KBMIT
2.22.11 year ago433 KBMIT
2.22.01 year ago1.1 MBMIT
2.21.01 year ago431 KBMIT
2.20.02 years ago420 KBMIT
2.19.02 years ago419 KBMIT

Overview

nan is an npm package that native Abstractions for Node.js: C++ header for Node 0.8 -> 26 compatibility. It has 2 known dependents in the graph. The latest version is 2.28.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need native Abstractions for Node.js: C++ header for Node 0.8 -> 26 compatibility 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).

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 nan?

Yes — nan scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 76 days ago. 13 releases in the last 2 years.

How do I install nan?

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

What license is nan released under?

nan is distributed under the MIT license.

How popular is nan?

npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on nan.

Is nan still maintained?

The most recent release of nan (v2.28.0) was published 2 months ago.

Does nan run install scripts?

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