Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
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

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

capacity

Get your computers full charge capacity (OS X)

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

Apple's battery guarantee says:

Your battery is designed to retain up to 80% of its original capacity at 1000 complete charge cycles. The one-year warranty includes replacement coverage for a defective battery. Apple offers a battery replacement service for all MacBook, MacBook Air, and MacBook Pro notebooks with built-in batteries.

CLI

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

  Usage
    $ capacity

Install

$ npm install --save capacity

Usage

const capacity = require('capacity');

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

License

MIT © Andreas Gillström

Keywords

app

FAQs

Package last updated on 13 Apr 2016

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