-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 1.93 KB
/
Copy pathpackage.json
File metadata and controls
66 lines (66 loc) · 1.93 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
{
"name": "zpl-renderer-js",
"version": "4.0.0",
"author": "Fabrizio Bap",
"license": "MIT",
"description": "Render ZPL (Zebra Programming Language) to PNG in the browser! Without Labelary or any third-party service.",
"homepage": "https://xaviewer.fabriziob.com/",
"keywords": [
"zpl",
"zebra",
"label",
"printer",
"png",
"render",
"wasm",
"typescript",
"javascript",
"nodejs",
"browser",
"labelary",
"zpljs",
"zebrash"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "npm run clean && npm run build:types && node build.js",
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
"build:types": "tsc -p tsconfig.json",
"build:wasm": "cd zebrash && GOOS=js GOARCH=wasm go build -o main.wasm -trimpath -buildvcs=false -ldflags=\"-s -w\" .",
"build:pw:wasm": "cd zebrash; $env:GOOS='js'; $env:GOARCH='wasm'; go build -o main.wasm -trimpath -buildvcs=false -ldflags='-s -w' .",
"build:w:wasm": "cross-env GOOS=js GOARCH=wasm go build -C zebrash -o main.wasm -trimpath -buildvcs=false -ldflags=\"-s -w\" .",
"test": "vitest"
},
"files": [
"dist/*.js",
"dist/*.ts",
"dist/*.wasm"
],
"devDependencies": {
"@types/node": "^26.1.1",
"esbuild": "^0.28.1",
"typescript": "^7.0.2",
"vite-plugin-top-level-await": "^1.6.0",
"vite-plugin-wasm": "^3.6.0",
"vitest": "^4.1.10"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs.js",
"import": "./dist/index.esm.js"
},
"./external": {
"types": "./dist/index.external.d.ts",
"require": "./dist/index.external.cjs.js",
"import": "./dist/index.external.esm.js"
},
"./wasm": "./dist/zebrash.wasm"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Fabrizz/zpl-renderer-js.git"
}
}