Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

noop-process

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noop-process

Create a noop process and get the PID

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
190
160.27%
Maintainers
1
Weekly downloads
 
Created
Source

noop-process Build Status

Create a noop process and get the PID

Useful for testing purposes.

Install

$ npm install --save noop-process

Usage

var noopProcess = require('noop-process');

noopProcess();
//=> 23423

API

noopProcess([options])

Creates a noop process and returns the process ID (PID).

options

title

Type: string

Give the process a title to make it easier to see in ps or kill it with killall.

persistent

Type: boolean
Default: false

Let the process continue to live after the main process exits.

noopProcess.cleanup()

All the processes are cleaned up when the main process exits, but you can use this if you need them cleaned up earlier.

License

MIT © Sindre Sorhus

Keywords

noop

FAQs

Package last updated on 20 Jun 2015

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