qrbit 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "qrbit",
3
+ "version": "0.5.0",
4
+ "description": "A fast QR code generator with logo embedding support",
5
+ "type": "module",
6
+ "main": "dist/qrbit.cjs",
7
+ "module": "dist/qrbit.js",
8
+ "types": "dist/qrbit.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/qrbit.d.ts",
12
+ "import": "./dist/qrbit.js",
13
+ "require": "./dist/qrbit.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build:napi:release": "napi build --platform --release --esm --output-dir src --js native.js --dts native.d.ts",
21
+ "build:release": "pnpm build:napi:release && pnpm build:ts && pnpm build:copy",
22
+ "build:napi:debug": "napi build --platform --esm --output-dir src --js native.js --dts native.d.ts",
23
+ "build": "pnpm build:napi:debug && pnpm build:ts && pnpm build:copy",
24
+ "build:linux": "napi build --platform --release --target x86_64-unknown-linux-gnu",
25
+ "build:ts": "tsup",
26
+ "build:copy": "cp src/qrbit.*.node dist/ && cp src/native.* dist/",
27
+ "clean": "rimraf dist src/*.node src/native.* target",
28
+ "lint": "biome check --write --error-on-warnings",
29
+ "test": "pnpm lint && vitest run --coverage",
30
+ "test:ci": "vitest run --coverage",
31
+ "benchmark:common": "tsx benchmark/qrcode-common-svg.ts && tsx benchmark/qrcode-common-png.ts",
32
+ "benchmark:svg": "tsx benchmark/qrcode-svg.ts",
33
+ "benchmark:png": "tsx benchmark/qrcode-png.ts",
34
+ "benchmark:logo": "tsx benchmark/qrcode-logo.ts",
35
+ "benchmark": "pnpm benchmark:svg && pnpm benchmark:png && pnpm benchmark:logo",
36
+ "generate-examples": "rimraf ./examples && pnpm tsx ./scripts/generate-examples.ts",
37
+ "artifacts": "napi artifacts",
38
+ "version": "napi version"
39
+ },
40
+ "devDependencies": {
41
+ "@biomejs/biome": "^2.2.2",
42
+ "@faker-js/faker": "^10.0.0",
43
+ "@loskir/styled-qr-code-node": "^1.5.2",
44
+ "@monstermann/tinybench-pretty-printer": "^0.2.0",
45
+ "@napi-rs/cli": "^3.1.5",
46
+ "@types/node": "^24.3.1",
47
+ "@types/qrcode": "^1.5.5",
48
+ "@vitest/coverage-v8": "^3.2.4",
49
+ "tinybench": "^5.0.1",
50
+ "tsup": "^8.5.0",
51
+ "tsx": "^4.20.5",
52
+ "typescript": "^5.9.2",
53
+ "vitest": "^3.2.4"
54
+ },
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/jaredwray/qrbit.git"
58
+ },
59
+ "keywords": [
60
+ "qr",
61
+ "qrcode",
62
+ "generator",
63
+ "svg",
64
+ "png",
65
+ "logo",
66
+ "rust",
67
+ "napi"
68
+ ],
69
+ "author": "Jared Wray <me@jaredwray.com>",
70
+ "license": "MIT",
71
+ "napi": {
72
+ "binaryName": "qrbit",
73
+ "targets": [
74
+ "x86_64-pc-windows-msvc",
75
+ "x86_64-apple-darwin",
76
+ "x86_64-unknown-linux-gnu",
77
+ "x86_64-unknown-linux-musl",
78
+ "aarch64-unknown-linux-gnu",
79
+ "i686-pc-windows-msvc",
80
+ "armv7-unknown-linux-gnueabihf",
81
+ "aarch64-apple-darwin",
82
+ "aarch64-linux-android",
83
+ "x86_64-unknown-freebsd",
84
+ "aarch64-unknown-linux-musl",
85
+ "aarch64-pc-windows-msvc",
86
+ "armv7-linux-androideabi",
87
+ "wasm32-wasip1-threads"
88
+ ]
89
+ },
90
+ "dependencies": {
91
+ "cacheable": "^1.10.4",
92
+ "hookified": "^1.12.0",
93
+ "qrcode": "^1.5.4",
94
+ "rimraf": "^6.0.1"
95
+ }
96
+ }