network_tools 3.2.7
network_tools: ^3.2.7 copied to clipboard
Networking Tools library which can help you discover open ports, devices on subnet and many other things.
We analyzed this package 30 hours ago, and awarded it 130 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
41 out of 113 API elements (36.3 %) have documentation comments.
Some symbols that are missing documentation: network_tools.ARPData
, network_tools.ARPData.ARPData.fromJson
, network_tools.ARPData.ARPData.new
, network_tools.ARPData.host
, network_tools.ARPData.iPAddress
.
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/port_scanner.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/port_scanner.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 9 issues. Showing the first 2:
INFO: Classes should define instance members.
lib/src/device_info/arp_table.dart:9:1
╷
9 │ ┌ class ARPTable {
10 │ │ static final arpLogger = Logger("arp-table-logger");
11 │ │ static const String tableName = 'ARPPackets';
12 │ │ static const String columnName = 'iPAddress';
13 │ │
14 │ │ static Future<List<String>?> entries() async {
15 │ │ final list = (await (await _db()).query(tableName, columns: [columnName]))
16 │ │ .map((e) => ARPData.fromJson(e).iPAddress.toString())
17 │ │ .toList();
18 │ │ return list;
19 │ │ }
20 │ │
21 │ │ static Future<ARPData?> entryFor(String address) async {
22 │ │ arpLogger.fine('Trying to fetch arp table entry for $address');
│ └─────────────────────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/device_info/arp_table.dart
INFO: Classes should define instance members.
lib/src/device_info/vendor_table.dart:9:1
╷
9 │ ┌ class VendorTable {
10 │ │ static Map<dynamic, dynamic> vendorTableMap = {};
11 │ │
12 │ │ static Future<Vendor?> getVendor(Future<ARPData?> arpDataFuture) async {
13 │ │ final arpData = await arpDataFuture;
14 │ │ if (arpData != null) {
15 │ │ final macAddress = arpData.macAddress;
16 │ │ if (macAddress != null) {
17 │ │ if (vendorTableMap.keys.isEmpty) {
18 │ │ vendorTableMap = await _createVendorTableMap();
19 │ │ }
20 │ │ final pattern = macAddress.contains(':') ? ':' : '-';
21 │ │ // print("Mac address: ${macAddress.split(pattern).sublist(0, 3).join()}");
│ └──────────────────────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/device_info/vendor_table.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
csv |
^5.0.2 |
5.1.1 | 6.0.0 | |
dart_ping |
^9.0.0 |
9.0.1 | 9.0.1 | |
json_annotation |
^4.8.1 |
4.9.0 | 4.9.0 | |
logging |
^1.2.0 |
1.3.0 | 1.3.0 | |
multicast_dns |
^0.3.2+2 |
0.3.3 | 0.3.3 | |
path |
^1.8.3 |
1.9.1 | 1.9.1 | |
process_run |
^0.13.1 |
0.13.3+1 | 1.2.4 | |
sqflite_common_ffi |
^2.3.0+2 |
2.3.6 | 2.3.6 | |
universal_io |
^2.0.4 |
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 | |
ffi |
- | 2.1.4 | 2.1.4 | |
meta |
- | 1.17.0 | 1.17.0 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
source_span |
- | 1.10.1 | 1.10.1 | |
sqflite_common |
- | 2.5.6 | 2.5.6 | |
sqlite3 |
- | 2.9.3 | 2.9.3 | |
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
.
The constraint `^5.0.2` on csv does not support the stable version `6.0.0`.
Try running dart pub upgrade --major-versions csv
to update the constraint.
The constraint `^0.13.1` on process_run does not support the stable version `0.14.0`.
Try running dart pub upgrade --major-versions process_run
to update the constraint.
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.