Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@danyalwe/capacitor-battery
Advanced tools
Capacitor plugin to get access to every info about the device battery
Get access to every info about the device battery!
Supported Android version: 21+
Supported iOS version: Not supported
Supported Browsers: Chromium-based
npm install @danyalwe/capacitor-battery
npx cap sync
Name | Android | iOS | Web |
---|---|---|---|
start | ✅ | ❌ | ✅ |
stop | ✅ | ❌ | ✅ |
addListener | ✅ | ❌ | ✅ |
removeAllListeners | ✅ | ❌ | ✅ |
Property | Android | iOS | Web |
---|---|---|---|
currentCapacity | ✅ | ❌ | ❌ |
totalCapacity | ✅ | ❌ | ❌ |
realPercentage | ✅ | ❌ | ❌ |
technology | ✅ | ❌ | ❌ |
temperature | ✅ | ❌ | ❌ |
voltage | ✅ | ❌ | ❌ |
amperage | ✅ | ❌ | ❌ |
wattage | ✅ | ❌ | ❌ |
health | ✅ | ❌ | ❌ |
status | ✅ | ❌ | ❌ |
chargeMode | ✅ | ❌ | ❌ |
level | ✅ | ❌ | ✅ |
hasBattery | ✅ | ❌ | ✅ |
isCharging | ✅ | ❌ | ✅ |
chargingTime | ❌ | ❌ | ✅ |
dischargingTime | ❌ | ❌ | ✅ |
start() => Promise<Battery | undefined>
Returns: Promise<Battery>
stop() => Promise<void>
addListener(eventName: 'batteryChange', listenerFunc: (event: Battery) => void) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName | 'batteryChange' |
listenerFunc | (event: Battery) => void |
Returns: Promise<PluginListenerHandle>
removeAllListeners() => Promise<void>
Prop | Type |
---|---|
level | number |
hasBattery | boolean |
isCharging | boolean |
chargingTime | number |
dischargingTime | number |
currentCapacity | number |
totalCapacity | number |
realPercentage | number |
technology | string |
temperature | number |
voltage | number |
amperage | number |
wattage | number |
health | BatteryHealth |
status | BatteryStatus |
chargeMode | BatteryChargeMode |
Prop | Type |
---|---|
remove | () => Promise<void> |
Members |
---|
UNKNOWN |
COLD |
DEAD |
GOOD |
OVERHEAT |
OVER_VOLTAGE |
FAILURE |
Members |
---|
UNKNOWN |
NOT_CHARGING |
DISCHARGING |
CHARGING |
FULL |
Members |
---|
UNKNOWN |
AC |
USB |
DOCK |
WIRELESS |
0.0.2
FAQs
Capacitor plugin to get access to every info about the device battery
The npm package @danyalwe/capacitor-battery receives a total of 0 weekly downloads. As such, @danyalwe/capacitor-battery popularity was classified as not popular.
We found that @danyalwe/capacitor-battery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.