New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

inherit-class

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inherit-class

util.inherits without the cruft

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

inherit-class

frozen

Like util.inherits but without any cruft. Aimed at ES5 (IE 10+), does not pollute classes with super_, and uses the same code path in Node and the browser.

Example

var inherits = require('inherit-class')

function MyClass() {
  BaseClass.call(this)
}

inherits(MyClass, BaseClass)

Install

npm install inherit-class --save

Usage

NPM

inherits(class, superClass)

Overrides the prototype of class so that it inherits from superClass.

License

MIT, see LICENSE.md for details.

Keywords

inherits

FAQs

Package last updated on 08 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts