Socket
Book a DemoInstallSign in
Socket

capacitor-sys-cpu

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-sys-cpu

Capacitor plugin for obtaining system CPU utilization.

0.0.6
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

capacitor-sys-cpu

Capacitor plugin for obtaining system CPU utilization.

Install

npm install capacitor-sys-cpu
npx cap sync

API

  • echo(...)
  • getCpuInfo()
  • getOnlineCpus()
  • getZoneTemp(...)
  • Interfaces

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
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; }>
ParamType
options{ zone: Number; }

Returns: Promise<{ temp: number; }>

Interfaces

CpuInfo

PropType
loadnumber

OnlineInfo

PropType
onlinestring

Number

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

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

Keywords

capacitor

FAQs

Package last updated on 10 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.