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.

Pub Package package publisher

Introduction #

This Dart package that provides information about the CPU. The package is designed to work in all platforms, including browsers.

Getting started #

1.Add dependency #

In pubspec.yaml:

dependencies:
  os_cpu: ^1.0.1

2.Use #

Use CpuType.get or CpuType.getSync:

import 'package:os_cpu/os_cpu.dart';

Future<void> main() async {
  final cpuType = await CpuType.get(); // OR CpuType.getSync()
  print(cpuType);
}
1
likes
160
points
26
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

os

More

Packages that depend on os_cpu