New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

capacity

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacity

Get your computers full charge capacity

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

capacity

Get your computers full charge capacity Currently OS X only

Full charge capacity refers to the amount of power as measured in mAh (milliampere-hours) the battery is capable of containing. This number lowers as the battery becomes depleted with usage and age.

CLI

$ npm install --global capacity
$ capacity --help

  Usage
    capacity

Install

$ npm install --save capacity

Usage

const capacity = require('capacity');

capacity().then(capacity => {
	console.log(capacity);
	//=> '0.98'
});

License

MIT © Andreas Gillström

Keywords

app

FAQs

Package last updated on 27 Nov 2015

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