network_tools 6.0.5
network_tools: ^6.0.5 copied to clipboard
Networking Tools library which can help you discover open ports, devices on subnet and many other things.
We analyzed this package in the last hour, 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
37 out of 125 API elements (29.6 %) have documentation comments.
Some symbols that are missing documentation: network_tools, network_tools.ARPData, network_tools.ARPData.ARPData.fromDriftData, network_tools.ARPData.ARPData.fromJson, network_tools.ARPData.ARPData.fromRegExpMatch.
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.dartthat imports:package:network_tools/src/services/mdns_scanner_service.dartthat imports:package:universal_io/io.dartthat imports:package:universal_io/src/_exports_in_browser.dartthat imports:package:universal_io/src/internet_address.dartthat imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:network_tools/network_tools.dartthat imports:package:network_tools/src/services/mdns_scanner_service.dartthat imports:package:universal_io/io.dartthat imports:package:universal_io/src/_exports_in_vm.dartthat imports:package:universal_io/src/new_universal_http_client.dartthat imports:package:universal_io/src/_helpers.dartthat imports:package:universal_io/src/_helpers_impl_elsewhere.dartthat 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.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: Classes should define instance members.
lib/src/device_info/vendor_table.dart:10:1
╷
10 │ ┌ /// Provides utilities for mapping MAC addresses to vendor information using a local CSV file.
11 │ │ class VendorTable {
12 │ │ static String noColonString(String macAddress) {
13 │ │ final pattern = macAddress.contains(':') ? ':' : '-';
14 │ │ return macAddress.split(pattern).sublist(0, 3).join().toUpperCase();
15 │ │ }
16 │ │
17 │ │ static Future<List<Vendor>> fetchVendorTable({http.Client? client}) async {
18 │ │ //Download and store
19 │ │ final csvPath = p.join(dbDirectory, "mac-vendors-export.csv");
20 │ │ final file = File(csvPath);
21 │ │ if (!await file.exists()) {
│ └────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/device_info/vendor_table.dart
INFO: Classes should define instance members.
lib/src/mdns_scanner/get_srv_list_by_os/srv_list.dart:4:1
╷
4 │ ┌ /// This class is common interface for executing functions on different os
5 │ │ class SrvList {
6 │ │ /// Will get the srv record in the local network.
7 │ │ static Future<List<String>?> getSrvRecordList() async {
8 │ │ if (Platform.isLinux) {
9 │ │ return SrvListLinux.getSrvRecordList();
10 │ │ }
11 │ │ // else if (Platform.isMacOS){
12 │ │ // // I think the command should be dns-sd so
13 │ │ // // dns-sd -B _services._dns-sd._udp local.
14 │ │ // // and
15 │ │ // // dns-sd -B _ipp._tcp local.
16 │ │ // }
17 │ │
18 │ │ // Get srv record list is not supported on this os
│ └───────────────────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/mdns_scanner/get_srv_list_by_os/srv_list.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 | |
drift |
^2.28.1 |
2.29.0 | 2.29.0 | |
get_it |
^8.2.0 |
8.2.0 | 8.2.0 | |
http |
^1.2.2 |
1.5.0 | 1.5.0 | |
injectable |
^2.5.1 |
2.5.2 | 2.5.2 | |
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 | |
sqlite3 |
^2.8.0 |
2.9.3 | 2.9.3 | |
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 | |
convert |
- | 3.1.2 | 3.1.2 | |
ffi |
- | 2.1.4 | 2.1.4 | |
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 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
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.23.0, Dart 3.9.4.
Check the analysis log for details.