Socket.dev optimized package override for globalthis
npm install @socketregistry/globalthis


> A tested zero dependency drop-in replacement of
> globalthis complete with
> TypeScript types.
socket CLI will automagically ✨
populate
overrides
and resolutions of
your package.json.
``sh`
npx socket optimize
Prefer to do it yourself? Add @socketregistry/globalthis to yourpackage.json.
`json`
{
"overrides": {
"globalthis": "npm:@socketregistry/globalthis@^1"
},
"resolutions": {
"globalthis": "npm:@socketregistry/globalthis@^1"
}
}
Install with your favorite package manager.
`sh`
npm install @socketregistry/globalthis
Node >= 18.20.4`