https://github.com/nikku/inherits-browser
Browser first inherits utility.
https://github.com/nikku/inherits-browser
Last synced: 3 months ago
JSON representation
Browser first inherits utility.
- Host: GitHub
- URL: https://github.com/nikku/inherits-browser
- Owner: nikku
- License: isc
- Created: 2022-04-06T19:13:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T16:57:58.000Z (almost 4 years ago)
- Last Synced: 2025-03-02T12:11:36.659Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# inherits-browser
A [inherits@2](https://www.npmjs.com/package/inherits) fork that is safe per default to use in browsers.
## Usage
```javascript
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