@socketregistry/globalthis
v1.0.5
Published
Socket.dev optimized package override for globalthis
Downloads
2,413
Readme
@socketregistry/globalthis
A tested zero dependency drop-in replacement of
globalthis
complete with TypeScript types.
Installation
Install as a package override
socket
CLI will automagically ✨
populate
overrides
and resolutions of
your package.json
.
npx socket optimize
Prefer to do it yourself? Add @socketregistry/globalthis
to your
package.json
.
{
"overrides": {
"globalthis": "npm:@socketregistry/globalthis@^1"
},
"resolutions": {
"globalthis": "npm:@socketregistry/globalthis@^1"
}
}
Install as a plain dependency
Install with your favorite package manager.
npm install @socketregistry/globalthis
Requirements
Node >= 18.20.4