os_cpu 1.0.1 copy "os_cpu: ^1.0.1" to clipboard
os_cpu: ^1.0.1 copied to clipboard

API for CPU information. Works in all platforms, including browsers.

1
likes
150/ 160
pub points
24
downloads

We analyzed this package 8 days ago, and awarded it 150 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

7 out of 7 API elements (100.0 %) have documentation comments.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:os_cpu/os_cpu.dart that imports:
  • package:os_cpu/src/cpu_type.dart that imports:
  • package:os_cpu/src/_impl.dart that imports:
  • package:os_cpu/src/_impl_default.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.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.

lib/src/_impl_web.dart:16:1

16import 'dart:html' as html;
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/_impl_web.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
os ^1.0.0 1.0.1 1.0.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jul 11Aug 8Sep 5Oct 3Oct 31Nov 28Dec 26Jan 23Feb 20Mar 2005101520253035>=1.0.0-0 <2.0.0
1
likes
150
points
24
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

2024.09.25 - 2025.04.09

API for CPU information. Works in all platforms, including browsers.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

os

More

Packages that depend on os_cpu