Socket
Socket
Sign inDemoInstall

is-process-active

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-process-active

cross-platform check if process pid is active


Version published
Maintainers
1
Install size
66.6 kB
Created

Readme

Source

is-process-active

Build status CircleCI codecov npm npm npm David GitHub top language

Cross-platform support for detecting if a process pid is active. Uses process.kill(pid, 0) on unix and tasklist.exe on Windows.

Usage:

const pid = require('is-process-active')
if (pid.activeSync(myPid)) {
  // do something if process is active
}

// or...

if (await pid.active(myPid)) {
  // do something if process is active
}

FAQs

Last updated on 05 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc