capacitor-sys-cpu
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

capacitor-sys-cpu

Capacitor plugin for obtaining system CPU utilization.

Install

npm install capacitor-sys-cpu
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


getCpuInfo()

getCpuInfo() => Promise<CpuInfo>

Returns: Promise<CpuInfo>


getOnlineCpus()

getOnlineCpus() => Promise<OnlineInfo>

Returns: Promise<OnlineInfo>


getZoneTemp(...)

getZoneTemp(options: { zone: Number; }) => Promise<{ temp: number; }>
Param Type
options { zone: Number; }

Returns: Promise<{ temp: number; }>


Interfaces

CpuInfo

Prop Type
load number

OnlineInfo

Prop Type
online string

Number

An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.

Method Signature Description
toString (radix?: number | undefined) => string Returns a string representation of an object.
toFixed (fractionDigits?: number | undefined) => string Returns a string representing a number in fixed-point notation.
toExponential (fractionDigits?: number | undefined) => string Returns a string containing a number represented in exponential notation.
toPrecision (precision?: number | undefined) => string Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
valueOf () => number Returns the primitive value of the specified object.

Readme

Keywords

Package Sidebar

Install

npm i capacitor-sys-cpu

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

28.7 kB

Total Files

27

Last publish

Collaborators

  • matallui