UNPKG

@alwatr/global-this

Version:

Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).

85 lines (84 loc) 2.33 kB
{ "name": "@alwatr/global-this", "version": "5.5.3", "description": "Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).", "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", "keywords": [ "global", "globalThis", "global-polyfill", "global-shim", "globalThis-polyfill", "globalThis-shim", "cross-platform", "ECMAScript", "typescript", "javascript", "node", "nodejs", "browser", "esm", "module", "utility", "util", "utils", "nanolib", "alwatr" ], "type": "module", "main": "./dist/main.cjs", "module": "./dist/main.mjs", "types": "./dist/main.d.ts", "exports": { ".": { "types": "./dist/main.d.ts", "import": "./dist/main.mjs", "require": "./dist/main.cjs" } }, "license": "AGPL-3.0-only", "files": [ "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}", "LICENSE", "!demo/**/*" ], "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/Alwatr/nanolib", "directory": "packages/global-this" }, "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/global-this#readme", "bugs": { "url": "https://github.com/Alwatr/nanolib/issues" }, "prettier": "@alwatr/prettier-config", "scripts": { "b": "yarn run build", "w": "yarn run watch", "c": "yarn run clean", "cb": "yarn run clean && yarn run build", "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings", "build": "yarn run build:ts && yarn run build:es", "build:es": "nano-build --preset=module", "build:ts": "tsc --build", "watch": "yarn run watch:ts & yarn run watch:es", "watch:es": "yarn run build:es --watch", "watch:ts": "yarn run build:ts --watch --preserveWatchOutput", "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { "@alwatr/package-tracer": "^5.5.3" }, "devDependencies": { "@alwatr/nano-build": "^5.5.3", "@alwatr/prettier-config": "^5.0.0", "@alwatr/tsconfig-base": "^5.0.0", "@alwatr/type-helper": "^5.4.1", "@types/node": "^22.14.1", "typescript": "^5.8.3" }, "gitHead": "424a7a3e08e5f10fcfe53440d1cead68c88baf32" }