Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pidusage

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pidusage - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

13

lib/stats.js

@@ -154,6 +154,7 @@ var os = require('os')

if(!stdout || code !== 0) {
var error = 'Wmic errored, please open an issue on https://github.com/soyuka/pidusage with this message.'
stderr = error + os.EOL + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors.')
stderr = format('%s %s Wmic exited with code %d.', stderr, os.EOL, code)
stdout ? stderr = format('%s %s Stdout was %s', stderr, os.EOL, stdout) : null
var error = util.format('%s Wmic errored, please open an issue on https://github.com/soyuka/pidusage with this message.%s', new Date().toString(), os.EOL)
error += format('Command was "wmic %s"%s', args, os.EOL)
stderr = error + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors.')
stderr = format('%s%s%s Wmic exited with code %d.%s', os.EOL, stderr, os.EOL, code, os.EOL)
stdout ? stderr = format('%s%s Stdout was %s', stderr, os.EOL, stdout) : null

@@ -173,4 +174,4 @@ return done(new Error(stderr , null))

//https://msdn.microsoft.com/en-us/library/aa394597(v=vs.85).aspx
//https://msdn.microsoft.com/en-us/library/ms974615.aspx
//https://msdn.microsoft.com/en-us/library/aa394597(v=vs.85).aspx
//https://msdn.microsoft.com/en-us/library/ms974615.aspx

@@ -177,0 +178,0 @@ if (self.history[pid] !== undefined) {

{
"name": "pidusage",
"version": "1.0.6",
"version": "1.0.7",
"description": "Cross-platform process cpu % and memory usage of a PID — Edit",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc