@oxog/environment-detector
Version:
Comprehensive, zero-dependency environment detection for Node.js
97 lines (96 loc) • 3.39 kB
JSON
{
"name": "@oxog/environment-detector",
"version": "1.0.0",
"description": "Comprehensive, zero-dependency environment detection for Node.js",
"author": "Ersin Koç",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ersinkoc/environment-detector.git"
},
"keywords": [
"environment",
"detection",
"os",
"platform",
"wsl",
"docker",
"kubernetes",
"ci",
"cloud",
"container",
"is-wsl",
"is-docker",
"is-windows"
],
"engines": {
"node": ">=16.0.0"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
},
"./plugins": {
"types": "./dist/types/plugins/index.d.ts",
"require": "./dist/cjs/plugins/index.js",
"import": "./dist/esm/plugins/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"bin": {
"environment-detector": "./dist/cli/index.js"
},
"scripts": {
"build": "npm run clean && npm run build:types && npm run build:esm && npm run build:cjs && npm run build:cli",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
"build:esm": "esbuild src/index.ts --bundle --platform=node --target=node16 --format=esm --outfile=dist/esm/index.js --sourcemap --external:child_process --external:fs --external:os --external:path --external:util --external:crypto",
"build:cjs": "esbuild src/index.ts --bundle --platform=node --target=node16 --format=cjs --outfile=dist/cjs/index.js --sourcemap --external:child_process --external:fs --external:os --external:path --external:util --external:crypto",
"build:cli": "esbuild cli/index.ts --bundle --platform=node --target=node16 --format=cjs --outfile=dist/cli/index.js --sourcemap --banner:js=\"#!/usr/bin/env node\\n\" --external:child_process --external:fs --external:os --external:path --external:util --external:crypto",
"clean": "rimraf dist",
"test": "jest --coverage",
"test:watch": "jest --watch",
"test:ci": "jest --ci --coverage --maxWorkers=2",
"lint": "eslint src/**/*.ts tests/**/*.ts",
"lint:fix": "eslint src/**/*.ts tests/**/*.ts --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
"prepublishOnly": "npm run build && npm run test",
"benchmark": "node benchmarks/index.js"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"directories": {
"doc": "docs",
"example": "examples",
"test": "tests"
},
"bugs": {
"url": "https://github.com/ersinkoc/environment-detector/issues"
},
"homepage": "https://github.com/ersinkoc/environment-detector#readme"
}