nan
npmv2.28.0Native 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.
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 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)
Used by
Popular packages that depend on nan.
Relationship graph
Dependencies (left) and dependents (right) of nan.
Frequently installed together
Lodash modular utilities.
An AST-based pattern checker for JavaScript.
CLI app helper
Opinionated, caching, retrying fetch client
A globbing fs.watch wrapper built from the best parts of other fine watch libs.
An optionally-asynchronous forEach with an interesting interface.
Parse sass files and extract a graph of imports
Given a possibly case-variant version of an existing filesystem path, returns the case-exact, normalized version as stored in the filesystem.
A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
the most correct and second fastest glob implementation in JavaScript
Cross platform child_process#spawn and child_process#spawnSync
Non-blocking stdout stream
Release history
11 releases in the last two years, typically about 98 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.28.0latest | 2 months ago | 446 KB | MIT |
| 2.27.0 | 4 months ago | 444 KB | MIT |
| 2.26.2 | 5 months ago | 443 KB | MIT |
| 2.26.1 | 5 months ago | 442 KB | MIT |
| 2.26.0 | 5 months ago | 442 KB | MIT |
| 2.25.0 | 7 months ago | 442 KB | MIT |
| 2.24.0 | 9 months ago | 438 KB | MIT |
| 2.23.1 | 10 months ago | 436 KB | MIT |
| 2.23.0 | 1 year ago | 435 KB | MIT |
| 2.22.2 | 1 year ago | 434 KB | MIT |
| 2.22.1 | 1 year ago | 433 KB | MIT |
| 2.22.0 | 1 year ago | 1.1 MB | MIT |
| 2.21.0 | 1 year ago | 431 KB | MIT |
| 2.20.0 | 2 years ago | 420 KB | MIT |
| 2.19.0 | 2 years ago | 419 KB | MIT |
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.
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.