-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 2.63 KB
/
Copy pathpackage.json
File metadata and controls
89 lines (89 loc) · 2.63 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
{
"name": "@hitrading/ctp-node",
"version": "4.0.0",
"description": "High-performance, type-safe CTP (Chinese futures) binding for Node.js",
"keywords": [
"ctp",
"futures",
"trading",
"quant",
"上期技术",
"期货",
"napi",
"addon",
"market-data"
],
"homepage": "https://github.com/hitrading/ctp-node#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/hitrading/ctp-node.git"
},
"bugs": {
"url": "https://github.com/hitrading/ctp-node/issues"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"README.zh-CN.md",
"CHANGELOG.md",
"RELEASING.md",
"docs/",
"scripts/bench-decode.mjs",
"scripts/bench-fullmarket-offline.mjs",
"scripts/stress-fullmarket.mjs",
"dist/",
"src/",
"ctpsdk/",
"prebuilds/",
"binding.gyp"
],
"engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
},
"scripts": {
"gen": "node scripts/codegen/generate.mjs && node scripts/codegen/generate-trader.mjs",
"build:native": "node-gyp rebuild",
"build:ts": "tsc && node scripts/bundle-cjs.mjs",
"build": "npm run gen && npm run build:native && npm run build:ts",
"prebuild:napi": "prebuildify --napi --strip",
"install": "node-gyp-build",
"test": "node scripts/test-codec.mjs && node scripts/test-md.mjs && node scripts/test-trader.mjs && node scripts/test-arm.mjs && node scripts/test-gbk.mjs && node scripts/test-lifecycle.mjs && node scripts/test-backpressure.mjs && node scripts/test-codec-edge.mjs && node scripts/test-md-unit.mjs && node scripts/test-client-unit.mjs && node scripts/test-trader-unit.mjs && node scripts/smoke-cjs.cjs",
"coverage": "c8 --config .c8rc.json npm test",
"test:cpp": "node scripts/test-cpp.mjs",
"test:integration": "node scripts/integration/run.mjs",
"bench": "node scripts/bench-decode.mjs",
"bench:fullmarket": "node scripts/bench-fullmarket-offline.mjs",
"smoke": "node scripts/smoke.mjs"
},
"devDependencies": {
"@types/node": "^24.0.3",
"c8": "^11.0.0",
"esbuild": "^0.28.1",
"prebuildify": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"node-addon-api": "^8.3.0",
"node-gyp": "^13.0.1",
"node-gyp-build": "^4.8.4"
},
"license": "Apache-2.0"
}