inherits-browser
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

inherits-browser

A inherits@2 fork that is safe per default to use in browsers.

Usage

import inherits from 'inherits-browser';

function Parent() {}

function Child() {
  Parent.call(this);
}

inherits(Child, Parent);

Why

  • Do not require package.json#browser; always be browser compatible
  • Target modern run-times (IE9+, other browsers + NodeJS) only

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i inherits-browser

Weekly Downloads

52,006

Version

0.1.0

License

ISC

Unpacked Size

4.22 kB

Total Files

9

Last publish

Collaborators

  • nikku