Skip to content
A cross engine globalThis
Branch: master
Clone or download
Andrea Giammarchi
Andrea Giammarchi 0.3.1
Latest commit 1bfafc4 Apr 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cjs a better approach Apr 18, 2019
esm a better approach Apr 18, 2019
test using self instead of window Apr 18, 2019
.gitignore first commit Apr 18, 2019
.npmignore using self instead of window Apr 18, 2019
README.md README with IE8+ info Apr 18, 2019
index.js a better approach Apr 18, 2019
min.js a better approach Apr 18, 2019
package.json 0.3.1 Apr 18, 2019

README.md

globalThis

A cross engine globalThis, fully inspired by https://mathiasbynens.be/notes/globalthis

  • ESM as import '@ungap/global-this'
  • CJS as require('@ungap/global-this');
  • JS as <script src="//unpkg.com/@ungap/global-this"></script>

Compatible with IE8 and above, plus all other engines and browsers.

You can’t perform that action at this time.