Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 4.58 KB
/
Copy pathpackage.json
File metadata and controls
154 lines (154 loc) · 4.58 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"name": "vscode-cbor-viewer",
"displayName": "CBOR Viewer",
"version": "0.7.2",
"description": "Decode and view CBOR-encoded files as human-readable JSON. Supports all COSE message types (Sign1, Sign, Encrypt0, Encrypt, Mac0, Mac), CBOR Sequences, countersignatures, CWT tokens, date/time tags, and typed arrays with inspection-style output for troubleshooting.",
"publisher": "JeromyStatia",
"icon": "icon.png",
"main": "./out/extension.js",
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCustomEditor:cborViewer.editor",
"onCommand:cborViewer.openHex",
"onCommand:cborViewer.decodeSelectionAsCbor"
],
"contributes": {
"configuration": {
"title": "CBOR Viewer",
"properties": {
"cborViewer.streamingThresholdMiB": {
"type": "number",
"default": 5,
"minimum": 0,
"description": "When opening a local file larger than this size (in MiB), decode it using a streaming CBOR parser instead of reading the entire file into memory. Set to 0 to always use full-buffer decoding. Only applies to local file:// URIs."
},
"cborViewer.defaultViewMode": {
"type": "string",
"default": "pretty",
"enum": [
"pretty",
"raw"
],
"description": "Default rendering mode for the CBOR Viewer. 'pretty' shows an inspection-style view (COSE-aware, embedded decode); 'raw' shows a structure-oriented view that preserves CBOR map keys."
}
}
},
"commands": [
{
"command": "cborViewer.openHex",
"title": "Open in Hex Editor",
"category": "CBOR Viewer"
},
{
"command": "cborViewer.decodeSelectionAsCbor",
"title": "Decode Selection as CBOR",
"category": "CBOR Viewer"
}
],
"menus": {
"explorer/context": [
{
"command": "cborViewer.openHex",
"when": "resourceExtname == .cbor || resourceExtname == .cose",
"group": "navigation"
}
],
"editor/context": [
{
"command": "cborViewer.openHex",
"when": "resourceExtname == .cbor || resourceExtname == .cose",
"group": "navigation"
},
{
"command": "cborViewer.decodeSelectionAsCbor",
"when": "editorTextFocus && editorHasSelection",
"group": "cborViewer@1"
}
],
"commandPalette": [
{
"command": "cborViewer.decodeSelectionAsCbor",
"when": "editorTextFocus"
}
]
},
"customEditors": [
{
"viewType": "cborViewer.editor",
"displayName": "CBOR Viewer",
"selector": [
{
"filenamePattern": "*.cbor"
},
{
"filenamePattern": "*.cose"
},
{
"filenamePattern": "*.cbor-seq"
}
],
"priority": "default"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "node -e \"require('fs').rmSync('out',{recursive:true,force:true})\" && tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"test:unit": "npm run compile && mocha --ui tdd \"out/test/unit/**/*.unit.test.js\"",
"test:coverage": "npm run compile && c8 --reporter=text --reporter=lcov --check-coverage --lines 95 --all --include=out/**/*.js --include=media/**/*.js --exclude=out/test/** mocha --ui tdd \"out/test/unit/**/*.unit.test.js\""
},
"keywords": [
"cbor",
"cose",
"binary",
"decoder",
"viewer"
],
"author": "JeromySt",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/JeromySt/vscode-cbor-viewer.git"
},
"extensionDependencies": [
"ms-vscode.hexeditor"
],
"dependencies": {
"cbor": "^10.0.11"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jsdom": "^21.1.7",
"@types/mocha": "^10.0.10",
"@types/mock-require": "^2.0.2",
"@types/node": "^25.0.3",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"c8": "^10.1.3",
"eslint": "^10.0.2",
"glob": "^13.0.0",
"jsdom": "^26.0.0",
"mocha": "^11.7.5",
"mock-require": "^3.0.3",
"typescript": "^5.9.3"
},
"overrides": {
"minimatch": "^10.2.1",
"@vscode/vsce": {
"minimatch": "^3.0.3"
},
"diff": "^8.0.3"
}
}