inherits
npmv2.0.4Browser-friendly inheritance fully compatible with standard node.js inherits()
Overview
inherits is an npm package that browser-friendly inheritance fully compatible with standard node.js inherits(). It is extremely widely used, with about 168.4M downloads per week and 1 known dependents in the graph. The latest version is 2.0.4, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need browser-friendly inheritance fully compatible with standard node.js inherits() and value a battle-tested, widely-adopted 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
- Large, well-established user base (168.4M weekly downloads).
- Clear open-source license (ISC).
- 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.
Relationship graph
Dependencies (left) and dependents (right) of inherits.
Dependencies
Dev (1)
Used by
Popular packages that depend on inherits.
Alternatives to inherits
Promise based HTTP client for the browser and node.js
LRU and FIFO caches for Client or Server
Public API for OpenTelemetry
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Browser running for Vitest using your browser of choice
Browser running for Vitest using playwright
Browser running for Vitest using webdriverio
Converts a source-map from/to different formats and allows adding/changing properties.
Browser running for Vitest
High performance (de)compression in an 8kB package
Frequently installed together
HTTP status utility
An AST-based pattern checker for JavaScript.
Deprecate all the things
A small polyfill for Object.setprototypeof
Convert a string of words to a JavaScript identifier
Version history
| Version | Published | License |
|---|---|---|
| 2.0.4latest | 7 years ago | ISC |
| 2.0.3 | 10 years ago | ISC |
| 1.0.2 | 11 years ago | ISC |
| 1.0.1 | 11 years ago | ISC |
| 2.0.1 | 13 years ago | ISC |
| 2.0.0 | 13 years ago | WTFPL2 |
| 1.0.0 | 15 years ago | ISC |
Maintainers
Frequently asked questions
How do I install inherits?
Run `npm install inherits` to add inherits to your npm project.
What license is inherits released under?
inherits is distributed under the ISC license.
How popular is inherits?
inherits has approximately 168,447,721 downloads per week and 1 known dependent packages.