-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 1.34 KB
/
package.json
File metadata and controls
55 lines (55 loc) · 1.34 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
{
"name": "jpeg-encoder",
"version": "2.0.0",
"description": "Complete JPEG encoder/decoder for Node.js and Browser with CLI",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"jpeg-encoder": "./dist/cli.js"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./encoder": {
"import": "./dist/encoder.js",
"types": "./dist/encoder.d.ts"
},
"./decoder": {
"import": "./dist/decoder.js",
"types": "./dist/decoder.d.ts"
}
},
"scripts": {
"dev": "bun run src/cli.ts",
"build": "bun build src/index.ts --outdir ./dist --target node --external sharp && bun build src/cli.ts --outdir ./dist --target node --external sharp",
"build:browser": "bun build src/index.ts --outdir ./dist/browser --target browser --minify",
"start": "bun run dist/cli.js",
"test": "bun test",
"clean": "rm -rf dist",
"encode": "bun run src/cli.ts encode",
"decode": "bun run src/cli.ts decode"
},
"keywords": [
"jpeg",
"encoder",
"decoder",
"image",
"compression",
"dct",
"huffman",
"typescript",
"bun"
],
"author": "Pawvan",
"license": "MIT",
"devDependencies": {
"@types/bun": "latest",
"bun-types": "latest"
},
"dependencies": {
"sharp": "^0.33.5"
}
}