-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 3.21 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "node-os-utils",
"version": "2.0.3",
"description": "Advanced cross-platform operating system monitoring utilities with TypeScript support",
"type": "commonjs",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"exports": {
".": {
"require": "./dist/src/index.js",
"import": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
}
},
"files": [
"dist/**/*",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:watch": "tsc --watch",
"dev": "tsc --watch",
"test": "npm run build && mocha 'dist/**/*.test.js'",
"test:unit": "mocha 'dist/test/unit/**/*.test.js'",
"test:integration": "mocha 'dist/test/integration/**/*.test.js'",
"test:platform": "npm run build && mocha 'dist/test/platform/**/*.test.js'",
"test:linux": "npm run build && mocha 'dist/test/platform/linux.test.js'",
"test:macos": "npm run build && mocha 'dist/test/platform/macos.test.js'",
"test:windows": "npm run build && mocha 'dist/test/platform/windows.test.js'",
"test:current-platform": "npm run build && node -e \"const os=require('os'); const platform=os.platform(); const map={linux:'test:linux',darwin:'test:macos',win32:'test:windows'}; const script=map[platform] || 'test'; console.log('Running tests for platform:', platform, '->', script); require('child_process').execSync('npm run ' + script, {stdio:'inherit'});\"",
"test:all-platforms": "npm run test:linux && npm run test:macos && npm run test:windows",
"test:coverage": "nyc npm test",
"test:coverage-platform": "nyc npm run test:platform",
"test:node18": "node --version && npm test",
"test:node20": "node --version && npm test",
"test:node22": "node --version && npm test",
"lint": "eslint src --ext .ts --fix",
"lint:check": "eslint src --ext .ts",
"docs": "typedoc src --out docs",
"publish:beta": "npm publish --tag beta",
"version:beta": "npm version prerelease --preid=beta",
"prepublishOnly": "npm run clean && npm run build && npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SunilWang/node-os-utils.git"
},
"author": {
"name": "SunilWang",
"email": "ahwangshu@qq.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/SunilWang/node-os-utils/issues"
},
"homepage": "https://github.com/SunilWang/node-os-utils#readme",
"keywords": [
"os",
"system-monitor",
"monitoring",
"cpu",
"memory",
"disk",
"network",
"process-monitor",
"server-monitoring",
"typescript",
"cross-platform",
"linux",
"macos",
"windows",
"performance",
"metrics",
"realtime",
"observability",
"netstat",
"processes"
],
"devDependencies": {
"typescript": "~5.4.0",
"@types/node": "~18.0.0",
"@types/mocha": "~10.0.0",
"@types/chai": "~4.3.0",
"mocha": "~10.0.0",
"chai": "~4.3.0",
"nyc": "~15.1.0",
"eslint": "~8.0.0",
"@typescript-eslint/eslint-plugin": "~6.0.0",
"@typescript-eslint/parser": "~6.0.0",
"typedoc": "~0.25.0",
"rimraf": "~5.0.0"
},
"dependencies": {}
}