battery-manager-dont-use

1.0.1 • Public • Published

How to install?

Just add battery-manager-dont-use to your project. via npm or yarn or pnpm.

pnpm add battery-manager-dont-use

Then it is ready to use example app:

import BatteryManager from 'battery-manager-dont-use';


const manager = new BatteryManager({
    onChargingChange: (isCharging) => { console.log(`Your laptop is ${isCharging ? 'charging' : 'not charging'}`) },
    onLevelChange: (level) => { console.log(`Your laptop battery is ${level * 100}`) },
})
console.log('hello dude!');

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i battery-manager-dont-use

    Weekly Downloads

    3

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.67 kB

    Total Files

    4

    Last publish

    Collaborators

    • sbayd