netsweep 1.1.0 → 1.1.1

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.
Files changed (3) hide show
  1. package/README.md +56 -15
  2. package/dist/index.js +38 -1717
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # netprobe
1
+ # netsweep
2
2
 
3
3
  Network Swiss Army Knife - A single command for comprehensive network diagnostics.
4
4
 
5
5
  ```
6
6
  ╭──────────────────────────────────╮
7
- NETPROBE - Network Diagnostics │
7
+ NETSWEEP - Network Diagnostics │
8
8
  ╰──────────────────────────────────╯
9
9
  ┌─ CONNECTION ────────────────────────────────────────────────┐
10
10
  │ Interface: Wi-Fi (en0) │
@@ -29,6 +29,31 @@ Network Swiss Army Knife - A single command for comprehensive network diagnostic
29
29
  │ 53/tcp DNS OPEN │
30
30
  │ 80/tcp HTTP OPEN │
31
31
  └──────────────────────────────────────────────────────────────┘
32
+ ┌─ WIFI ──────────────────────────────────────────────────────┐
33
+ │ SSID: MyNetwork │
34
+ │ Signal: -52 dBm (Excellent) │
35
+ │ Noise: -90 dBm │
36
+ │ Channel: 36 (5 GHz) │
37
+ │ Tx Rate: 867 Mbps │
38
+ └──────────────────────────────────────────────────────────────┘
39
+ ┌─ ISP & LOCATION ────────────────────────────────────────────┐
40
+ │ ISP: Telenor Norge AS │
41
+ │ ASN: AS2119 │
42
+ │ Location: Oslo, Norway │
43
+ │ Coordinates: 59.9139° N, 10.7522° E │
44
+ └──────────────────────────────────────────────────────────────┘
45
+ ┌─ TRACEROUTE (to 1.1.1.1) ───────────────────────────────────┐
46
+ │ 1 192.168.0.1 1.2ms ██ │
47
+ │ 2 10.0.0.1 8.4ms ████ │
48
+ │ 3 85.123.45.1 12.1ms ██████ │
49
+ │ 4 1.1.1.1 14.3ms ███████ │
50
+ └──────────────────────────────────────────────────────────────┘
51
+ ┌─ INTERNET HEALTH ───────────────────────────────────────────┐
52
+ │ Google ✓ 12ms │
53
+ │ Cloudflare ✓ 8ms │
54
+ │ GitHub ✓ 45ms │
55
+ │ AWS ✓ 23ms │
56
+ └──────────────────────────────────────────────────────────────┘
32
57
  ```
33
58
 
34
59
  ## Features
@@ -37,6 +62,10 @@ Network Swiss Army Knife - A single command for comprehensive network diagnostic
37
62
  - **Device Discovery** - Find all devices on your network via ARP with vendor identification
38
63
  - **Speed Test** - Download/upload speeds and latency via Cloudflare
39
64
  - **Port Scanner** - Scan common ports on any host
65
+ - **WiFi Info** - Signal strength, noise, channel, and transmit rate
66
+ - **ISP & Geolocation** - ISP name, ASN, and location lookup
67
+ - **Traceroute** - Visual traceroute with latency bars
68
+ - **Internet Health** - Check connectivity to major services
40
69
  - **Beautiful Output** - Clean terminal UI with colors and tables
41
70
  - **JSON Output** - Pipe results to other tools
42
71
 
@@ -50,7 +79,7 @@ bunx netsweep
50
79
 
51
80
  # Or install globally
52
81
  bun install -g netsweep
53
- netprobe
82
+ netsweep
54
83
  ```
55
84
 
56
85
  ### Using npm
@@ -61,36 +90,40 @@ npx netsweep
61
90
 
62
91
  # Or install globally
63
92
  npm install -g netsweep
64
- netprobe
93
+ netsweep
65
94
  ```
66
95
 
67
96
  ### From source
68
97
 
69
98
  ```bash
70
- git clone https://github.com/jberggren/netprobe.git
99
+ git clone https://github.com/Johannes-Berggren/netprobe.git
71
100
  cd netprobe
72
101
  bun install
73
102
  bun link
74
- netprobe
103
+ netsweep
75
104
  ```
76
105
 
77
106
  ## Usage
78
107
 
79
108
  ```bash
80
- # Full network scan (connection, speed, devices, ports)
81
- netprobe
109
+ # Full network scan (all diagnostics)
110
+ netsweep
82
111
 
83
112
  # Individual scans
84
- netprobe -d # Devices only
85
- netprobe -s # Speed test only
86
- netprobe -p # Gateway ports only
113
+ netsweep -d # Devices only
114
+ netsweep -s # Speed test only
115
+ netsweep -p # Gateway ports only
116
+ netsweep -w # WiFi info only
117
+ netsweep --isp # ISP & location only
118
+ netsweep --trace # Traceroute only
119
+ netsweep --health # Internet health only
87
120
 
88
121
  # Scan specific host
89
- netprobe -p -t 192.168.0.7
122
+ netsweep -p -t 192.168.0.7
90
123
 
91
124
  # JSON output for scripting
92
- netprobe --json
93
- netprobe -d --json | jq '.devices[] | select(.vendor == "Apple")'
125
+ netsweep --json
126
+ netsweep -d --json | jq '.devices[] | select(.vendor == "Apple")'
94
127
  ```
95
128
 
96
129
  ## Options
@@ -101,9 +134,13 @@ netprobe -d --json | jq '.devices[] | select(.vendor == "Apple")'
101
134
  | `--devices` | `-d` | Scan for network devices |
102
135
  | `--speed` | `-s` | Run speed test |
103
136
  | `--ports` | `-p` | Scan gateway ports |
137
+ | `--wifi` | `-w` | Show WiFi info |
138
+ | `--isp` | `-i` | Show ISP & geolocation |
139
+ | `--trace` | `-r` | Run traceroute to 1.1.1.1 |
140
+ | `--health` | | Check internet health |
104
141
  | `--target <ip>` | `-t` | Scan specific IP for ports |
105
142
  | `--json` | | Output as JSON |
106
- | `--help` | `-h` | Show help |
143
+ | `--help` | | Show help |
107
144
 
108
145
  ## Requirements
109
146
 
@@ -116,6 +153,10 @@ netprobe -d --json | jq '.devices[] | select(.vendor == "Apple")'
116
153
  - **Devices**: Parses the ARP table with MAC vendor lookup (1000+ vendors)
117
154
  - **Speed**: Tests against Cloudflare's speed test endpoints
118
155
  - **Ports**: TCP connect scan on common service ports
156
+ - **WiFi**: Reads from macOS system_profiler
157
+ - **ISP**: Queries ip-api.com (free, no API key required)
158
+ - **Traceroute**: Runs native traceroute command
159
+ - **Health**: HTTP HEAD requests to major services
119
160
 
120
161
  ## License
121
162