network_tools 5.0.6
network_tools: ^5.0.6 copied to clipboard
Networking Tools library which can help you discover open ports, devices on subnet and many other things.
We analyzed this package 16 hours ago, and awarded it 140 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
29 out of 123 API elements (23.6 %) have documentation comments.
Some symbols that are missing documentation: network_tools
, network_tools.ARPData
, network_tools.ARPData.ARPData.fromJson
, network_tools.ARPData.ARPData.new
, network_tools.ARPData.hostname
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:network_tools/network_tools.dart
that imports:package:network_tools/src/services/mdns_scanner_service.dart
that imports:package:universal_io/io.dart
that imports:package:universal_io/src/_exports_in_browser.dart
that imports:package:universal_io/src/internet_address.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:network_tools/network_tools.dart
that imports:package:network_tools/src/services/mdns_scanner_service.dart
that imports:package:universal_io/io.dart
that imports:package:universal_io/src/_exports_in_vm.dart
that imports:package:universal_io/src/new_universal_http_client.dart
that imports:package:universal_io/src/_helpers.dart
that imports:package:universal_io/src/_helpers_impl_elsewhere.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.cn/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
INFO: Classes should define instance members.
lib/src/device_info/arp_table_helper.dart:7:1
╷
7 │ ┌ /// Retreiving ARP packets is only supported for Desktop such as
8 │ │ /// Linux, Windows, and macOS. Dart native doesn't provide a way or rejects
9 │ │ /// call to arp command on mobile such as Android and iOS.
10 │ │ /// Maybe in future dart native will support sending raw packets,
11 │ │ /// so that time we can add implementation for mobile devices.
12 │ │ /// Currenlty this is achieved by process package.
13 │ │ class ARPTableHelper {
14 │ │ static final arpLogger = Logger("arp-table-logger");
15 │ │
16 │ │ /// Fires arp -a command only on 3 platforms i.e., Linux, Windows, and macOS
│ └─────────────────────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/device_info/arp_table_helper.dart
INFO: Classes should define instance members.
lib/src/device_info/vendor_table.dart:10:1
╷
10 │ ┌ class VendorTable {
11 │ │ static Map<dynamic, dynamic> _vendorTableMap = {};
12 │ │
13 │ │ static Future<Vendor?> macToVendor(String macAddress) async {
14 │ │ await createVendorTableMap();
15 │ │ final pattern = macAddress.contains(':') ? ':' : '-';
16 │ │ return _vendorTableMap[macAddress
17 │ │ .split(pattern)
18 │ │ .sublist(0, 3)
19 │ │ .join()
20 │ │ .toUpperCase()] as Vendor?;
21 │ │ }
22 │ │
23 │ │ static Future<void> createVendorTableMap() async {
24 │ │ if (_vendorTableMap.keys.isEmpty) {
25 │ │ _vendorTableMap = await _fetchVendorTable();
│ └───────────────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/device_info/vendor_table.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
csv |
>=5.1.1 <7.0.0 |
6.0.0 | 6.0.0 | |
dart_ping |
^9.0.1 |
9.0.1 | 9.0.1 | |
http |
^1.2.2 |
1.5.0 | 1.5.0 | |
json_annotation |
^4.9.0 |
4.9.0 | 4.9.0 | |
logging |
^1.3.0 |
1.3.0 | 1.3.0 | |
multicast_dns |
^0.3.2+7 |
0.3.3 | 0.3.3 | |
path |
^1.9.0 |
1.9.1 | 1.9.1 | |
process_run |
^1.2.2 |
1.2.4 | 1.2.4 | |
sembast |
^3.7.5+2 |
3.8.5+1 | 3.8.5+1 | |
universal_io |
^2.2.2 |
2.2.2 | 2.2.2 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
meta |
- | 1.17.0 | 1.17.0 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
source_span |
- | 1.10.1 | 1.10.1 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.0 | 3.4.0 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
web |
- | 1.1.1 | 1.1.1 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.24
, Dart 3.9.4
.
Check the analysis log for details.