jstd-web/node_modules/inherits-browser
liang.chao ae9cf31198 Initial commit 2025-11-25 15:23:22 +08:00
..
dist Initial commit 2025-11-25 15:23:22 +08:00
CHANGELOG.md Initial commit 2025-11-25 15:23:22 +08:00
LICENSE Initial commit 2025-11-25 15:23:22 +08:00
README.md Initial commit 2025-11-25 15:23:22 +08:00
package.json Initial commit 2025-11-25 15:23:22 +08:00

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