3.0.1 • Published 9 years ago

linux-battery v3.0.1

Weekly downloads
166
License
MIT
Repository
github
Last release
9 years ago

linux-battery

Get info about your battery in Linux

Install

$ npm install --save linux-battery

Usage

const linuxBattery = require('linux-battery');

linuxBattery().then(battery => {
	console.log(battery);
	/*
	[{
		nativePath: 'BAT0',
		vendor: 'innotek',
		model: '1',
		serial: '0',
		powerSupply: 'yes',
		...
	}]
	*/
});

Related

License

MIT © Kevin Martensson