@alwatr/platform-info
Version:
This module provides a way to detect the current platform where the script is running. It defines a constant `platformInfo` which holds the information about the current platform.
86 lines (85 loc) • 2.28 kB
JSON
{
"name": "@alwatr/platform-info",
"version": "9.25.0",
"description": "This module provides a way to detect the current platform where the script is running. It defines a constant `platformInfo` which holds the information about the current platform.",
"license": "MPL-2.0",
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/Alwatr/alwatr",
"directory": "pkg/nanolib/platform-info"
},
"homepage": "https://github.com/Alwatr/alwatr/tree/next/pkg/nanolib/platform-info#readme",
"bugs": "https://github.com/Alwatr/alwatr/issues",
"exports": {
".": {
"types": "./dist/main.d.ts",
"import": "./dist/main.js",
"default": "./dist/main.js"
}
},
"sideEffects": false,
"devDependencies": {
"@alwatr/nano-build": "9.25.0",
"@alwatr/standard": "9.16.0",
"@alwatr/type-helper": "9.14.0",
"@types/node": "^24.12.4",
"typescript": "^6.0.3"
},
"scripts": {
"b": "bun run build",
"build": "bun run build:ts && bun run build:es",
"build:es": "nano-build --preset=module src/main.ts",
"build:ts": "tsc --build",
"cl": "bun run clean",
"clean": "rm -rfv dist *.tsbuildinfo",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint src/ --ext .ts",
"t": "bun run test",
"test": "ALWATR_DEBUG=0 bun test",
"w": "bun run watch",
"watch": "bun run watch:ts & bun run watch:es",
"watch:es": "bun run build:es --watch",
"watch:ts": "bun run build:ts --watch --preserveWatchOutput"
},
"files": [
"dist",
"src/**/*.ts",
"!src/**/*.test.ts",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"keywords": [
"alwatr",
"browser",
"cross-platform",
"deno",
"ECMAScript",
"esm",
"is-browser",
"is-deno",
"is-electron",
"is-node",
"is-nwjs",
"is-web-worker",
"javascript",
"module",
"nanolib",
"node",
"nodejs",
"nwjs",
"platform",
"platform-detection",
"platform-info",
"typescript",
"util",
"utility",
"utils",
"web-worker"
],
"gitHead": "a49ae304180faab79539b5ddfe62d18ac91a232e"
}