zhaojinyu e984acc6d0 first commit 10 months ago
..
dist e984acc6d0 first commit 10 months ago
CHANGELOG.md e984acc6d0 first commit 10 months ago
LICENSE e984acc6d0 first commit 10 months ago
README.md e984acc6d0 first commit 10 months ago
package.json e984acc6d0 first commit 10 months ago

README.md

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