Skip to content

Commit

Permalink
Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Malick-Tammal committed Nov 5, 2024
1 parent ccf731d commit c27f074
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</a>
</p>

> Battery util, get laptop battery information (health , capacity , serial number .....)
> Battery util, get laptop battery information (health , capacity , serial number ...etc)
## 🌟 Features

Expand Down Expand Up @@ -142,6 +142,9 @@ bu.batteryState()
}).catch(err => {
console.log(err);
});
// output (Example)
// level : 78
// isCharging : true
```

### Get battery state avery second
Expand All @@ -157,6 +160,12 @@ bu.batteryState()
console.log(err);
});
}, 1000);
// output (Example)
// { level: 78, isCharging: true }
// { level: 78, isCharging: true }
// { level: 79, isCharging: true }
// { level: 79, isCharging: false }

```

### Get specific data
Expand Down

0 comments on commit c27f074

Please sign in to comment.