-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
83 lines (83 loc) · 1.97 KB
/
package.json
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
{
"name": "ip2region",
"version": "2.3.0",
"description": "ip/ipv6 to geo database, IP(支持IPv6)地址到区域运营商",
"keywords": [
"ip",
"ipaddress-to-address",
"ip-address",
"ip-location",
"ip-region",
"ip-lookup",
"ip-search",
"ip-geo",
"ipv6",
"ipv6address-to-address",
"ipv6-address",
"ipv6-location",
"ipv6-region",
"ipv6-lookup",
"ipv6-search",
"ipv6-geo"
],
"main": "dist/lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/yourtion/node-ip2region.git"
},
"bugs": {
"url": "https://github.com/yourtion/node-ip2region/issues"
},
"files": [
"dist/lib",
"data/ip2region.db",
"data/ipv6wry.db"
],
"homepage": "https://github.com/yourtion/node-ip2region#readme",
"scripts": {
"dev": "export NODE_ENV=dev && jest --verbose --watch",
"test": "jest --coverage",
"tag": "git tag v`node -p 'require(\"./package\").version'`",
"format": "prettier --write \"src/**/*.ts\"",
"clean": "rm -rf dist",
"compile": "npm run clean && tsc",
"prepublishOnly": "npm run format && npm run compile && npm test && coveralls < coverage/lcov.info",
"postpublish": "npm run tag && git push && git push --tags"
},
"author": "Yourtion <[email protected]>",
"license": "MIT",
"peerDependencies": {
"@types/node": "*"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.5.0",
"coveralls": "^3.1.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typescript": "^5.5.4"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "./src/test/test",
"collectCoverageFrom": [
"src/lib/**/*.ts"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 95,
"lines": 80,
"statements": 80
}
},
"moduleFileExtensions": [
"ts",
"js",
"json"
]
}
}