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

is-running

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-running

Test if a process with a given pid is running

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
315K
decreased by-9.8%
Maintainers
2
Weekly downloads
 
Created

What is is-running?

The is-running npm package is a simple utility to check if a process with a given PID is currently running. It is useful for monitoring and managing processes in Node.js applications.

What are is-running's main functionalities?

Check if a process is running

This feature allows you to check if a process with a specific PID is currently running. The code sample demonstrates how to use the is-running package to check the status of a process and log the result.

const isRunning = require('is-running');
const pid = 12345; // Replace with the actual PID you want to check
if (isRunning(pid)) {
  console.log(`Process ${pid} is running.`);
} else {
  console.log(`Process ${pid} is not running.`);
}

Other packages similar to is-running

Keywords

FAQs

Package last updated on 17 Aug 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

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