-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
234 lines (234 loc) · 7.42 KB
/
package.json
File metadata and controls
234 lines (234 loc) · 7.42 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"name": "net-commander",
"displayName": "Net Commander ",
"description": "Net Commander is the extension for Visual Studio Code dedicated to Network Engineers, DevOps Engineers and Solution Architects streamlining everyday workflows and accelerating data-driven root-cause analysis.",
"version": "0.1.3",
"extensionKind": [
"workspace",
"ui"
],
"publisher": "skhell",
"pricing": "Free",
"category": "Formatters, Others",
"icon": "media/img/icons/net-commander-icon.png",
"repository": {
"type": "git",
"url": "https://github.com/skhell/net-commander"
},
"bugs": {
"url": "https://github.com/skhell/net-commander/issues"
},
"sponsor": {
"url": "https://github.com/sponsors/skhell"
},
"engines": {
"vscode": "^1.99.0"
},
"categories": [
"Other"
],
"keywords": [
"networking",
"wifi analyzer",
"wifi site survey",
"root cause analysis",
"ipinfo",
"cidr calculator",
"ssh",
"terminal",
"cisco",
"arista",
"ciena",
"iana",
"peeringdb",
"traceroute",
"ping",
"colorizer"
],
"activationEvents": [
"onStartupFinished",
"onCommand:sshConnect.connect",
"onTerminalProfile:sshConnect.profile",
"onLanguage:plaintext",
"onCommand:net-commander.azureCidrAnalyzer",
"onCommand:net-commander.awsCidrAnalyzer",
"onCommand:net-commander.gcpCidrAnalyzer",
"onCommand:netcmd.copyLastOutput",
"onCommand:netcmd.saveLastOutput"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "sshConnect.connect",
"title": "NET Commander: SSH Connect"
},
{
"command": "net-commander.cidrcalc",
"title": "NET Commander: CIDR Calculator"
},
{
"command": "net-commander.checkIpInfo",
"title": "NET Commander: Public IP lookup - ipinfo.io"
},
{
"command": "net-commander.checkMyIpInfo",
"title": "NET Commander: Get my Public IP - ipinfo.io"
},
{
"command": "net-commander.ping",
"title": "NET Commander: Ping"
},
{
"command": "net-commander.traceroute",
"title": "NET Commander: Traceroute"
},
{
"command": "net-commander.ianaportcalc",
"title": "NET Commander: IANA Port Calculator"
},
{
"command": "net-commander.peeringdb",
"title": "NET Commander: PeeringDB Lookup"
},
{
"command": "net-commander.wifiAnalyzer",
"title": "NET Commander: WiFi Analyzer"
},
{
"command": "net-commander.rootcauseAnalysis",
"title": "NET Commander: Root Cause Analysis"
},
{
"command": "net-commander.azureCidrAnalyzer",
"title": "NET Commander: Azure CIDR Analyzer"
},
{
"command": "net-commander.awsCidrAnalyzer",
"title": "NET Commander: AWS CIDR Analyzer"
},
{
"command": "net-commander.gcpCidrAnalyzer",
"title": "NET Commander: GCP CIDR Analyzer"
},
{
"command": "netcmd.copyLastOutput",
"title": "Copy Output",
"icon": "$(copy)"
},
{
"command": "netcmd.saveLastOutput",
"title": "Download Output",
"icon": "$(cloud-download)"
},
{
"command": "net-commander.selectWindowsAdapter",
"title": "NET Commander: Select Windows Network Adapter"
}
],
"menus": {
"view/title": [
{
"command": "netcmd.copyLastOutput",
"when": "view == terminal",
"group": "navigation"
},
{
"command": "netcmd.saveLastOutput",
"when": "view == terminal",
"group": "navigation"
}
]
},
"terminal": {
"profiles": [
{
"id": "sshConnect.profile",
"title": "SSH: Select Host",
"icon": "remote"
}
]
},
"configuration": {
"type": "object",
"title": "NET Commander",
"properties": {
"netCommander.ipinfoApiKey": {
"type": "string",
"default": "",
"description": "Open a Free account at ipinfo.io website and get your free API key from your dashboard API Token and paste it here."
},
"netCommander.ianaCsvUrl": {
"type": "string",
"default": "https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv",
"description": "This is the precompiled URL for IANA port assignments. Verify the URL at the IANA site and replace here if they update it https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml"
},
"netCommander.windowsAdapterName": {
"type": "string",
"default": "",
"description": "Selected Windows network adapter for traffic monitoring (RX/TX)",
"markdownDescription": "Run the command 'NET Commander: Select Windows Network Adapter' to populate this.",
"scope": "machine"
},
"netCommander.azureGraphToken": {
"type": "string",
"default": "",
"description": "Bearer token with access to Azure Resource Graph (management.azure.com).",
"markdownDescription": "Generate a token via Azure CLI: `az account get-access-token --resource https://management.azure.com/ --query accessToken -o tsv` and paste it here.",
"scope": "machine"
},
"netCommander.awsAccessKeyId": {
"type": "string",
"default": "",
"description": "AWS access key ID used by the AWS CIDR Analyzer.",
"markdownDescription": "Create a user or role with least-privilege access (for example, `ec2:Describe*` permissions) and provide the Access Key ID here.",
"scope": "machine"
},
"netCommander.awsSecretAccessKey": {
"type": "string",
"default": "",
"description": "AWS secret access key paired with the configured access key ID.",
"markdownDescription": "Store the AWS secret access key associated with the access key ID. Rotate this credential regularly.",
"scope": "machine"
},
"netCommander.awsSessionToken": {
"type": "string",
"default": "",
"description": "Optional AWS session token for temporary credentials.",
"markdownDescription": "Populate when using temporary credentials such as those from AWS STS (`aws sts get-session-token`). Leave blank when using long-lived access keys.",
"scope": "machine"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run rebuild",
"clean": "rm -rf out",
"compile": "tsc -p ./",
"rebuild": "npm run clean && npm run compile",
"watch": "tsc -watch -p ./",
"lint": "eslint src",
"test": "vscode-test",
"package": "npm run rebuild && vsce package"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20.17.47",
"@types/vscode": "^1.99.0",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.23.0",
"typescript": "^5.8.2"
},
"dependencies": {
"@aws-sdk/client-ec2": "^3.744.0",
"@vscode-elements/elements": "^1.15.0",
"google-auth-library": "^9.14.1",
"lit": "3.3.0",
"markdown-it": "^14.1.0",
"puppeteer": "^22.15.0",
"ssh-config": "^5.0.3"
}
}