This repository was archived by the owner on Dec 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
104 lines (104 loc) · 2.56 KB
/
package.json
File metadata and controls
104 lines (104 loc) · 2.56 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
101
102
103
104
{
"name": "@kontext21/k21",
"version": "0.21.1",
"description": "Node.js Library for the Kontext21 SDK",
"main": "bin/index.js",
"repository": "https://github.com/kontext21/k21-node",
"license": "MIT",
"files": [
"bin"
],
"keywords": [
"context",
"kontext21",
"AI",
"ocr",
"nodejs",
"rust",
"hyperpersonalization"
],
"napi": {
"name": "k21",
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"i686-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"x86_64-unknown-freebsd",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-linux-androideabi"
]
}
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node --import @swc-node/register/esm-register benchmark/bench.ts",
"build": "napi build --platform --release k21",
"build:ts": "rimraf bin && tsc -p tsconfig.build.json",
"build:debug": "napi build --platform",
"cp:bin": "cp ./k21/*.node bin/",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "oxlint .",
"prepublishOnly": "napi prepublish -t npm",
"test": "jest",
"version": "napi version",
"bp": "yarn build && yarn build:ts && yarn cp:bin && npm pack"
},
"devDependencies": {
"@napi-rs/cli": "^2.18.4",
"@swc-node/register": "^1.10.6",
"@swc/core": "^1.6.13",
"@taplo/cli": "^0.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.13.10",
"chalk": "^5.3.0",
"jest": "^29.7.0",
"lint-staged": "^15.2.7",
"npm-run-all2": "^7.0.0",
"oxlint": "^0.15.0",
"prettier": "^3.3.3",
"rimraf": "^5.0.0",
"tinybench": "^3.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.28.1",
"typedoc-plugin-markdown": "^4.6.0",
"typescript": "^5.5.3"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"oxlint --fix"
],
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
],
"*.toml": [
"taplo format"
]
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "yarn@4.6.0",
"dependencies": {
"ts-jest": "^29.3.0"
}
}