New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

battery-present

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

battery-present - npm Package Compare versions

Comparing version

to
1.0.3

3

index.js

@@ -6,2 +6,3 @@ var path = require('path');

var firstLine = require('first-line');
var batteryPath = require('battery-path');

@@ -14,3 +15,3 @@ function present(battery, callback) {

var bstr = path.resolve('/sys/class/power_supply/', battery, 'present');
var bstr = path.resolve(batteryPath(battery), 'present');

@@ -17,0 +18,0 @@ firstLine(bstr, function(error, line) {

{
"name": "battery-present",
"version": "1.0.2",
"version": "1.0.3",
"description": "Check if a specific battery is present",

@@ -23,2 +23,3 @@ "keywords": [

"dependencies": {
"battery-path": "^1.0.0",
"binary-split": "^0.1.2",

@@ -25,0 +26,0 @@ "first-line": "^1.0.1",