https://github.com/mitscherlich/shim-global-this
tiny `globalThis` shim
https://github.com/mitscherlich/shim-global-this
Last synced: 7 months ago
JSON representation
tiny `globalThis` shim
- Host: GitHub
- URL: https://github.com/mitscherlich/shim-global-this
- Owner: Mitscherlich
- License: mit
- Created: 2024-02-16T10:30:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T02:32:28.000Z (over 2 years ago)
- Last Synced: 2024-12-29T19:58:24.585Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://npm.im/@m9ch/global-this
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @m9ch/global-this
[](https://npm.im/@m9ch/global-this) [](https://npm.im/@m9ch/global-this)
tiny `globalThis` shim.
## Install
via `pnpm`, `yarn` or `npm`:
```bash
pnpm add @m9ch/global-this
# or
yarn add @m9ch/global-this
# or
npm i -S @m9ch/global-this
```
## Usage
```typescript
import { globaThis } from '@m9ch/global-this'
globalThis.window // Window
```
## License
MIT © [Mitscherlich](https://mitscherlich.me)