JSPM

inherits-browser

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53616
  • Score
    100M100P100Q152551F
  • License ISC

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

Package Exports

  • inherits-browser
  • inherits-browser/dist/index.es.js
  • inherits-browser/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (inherits-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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