Socket
Book a DemoInstallSign in
Socket

@nxmix/pid-file

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nxmix/pid-file

create pid file

0.3.5
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

pid-file

create pif file and has some options

Example


pid = require 'pid-file'
pid.create
  filename : 'pidfile.pid'

Create pid file on os.tmpDir(). If exists, rewrite.


pid = require 'pid-file'
pid.create
  filename : 'pidfile.pid'
  errorOnExist : true

Create pid file on os.tmpDir() . If exists, throw Error.


pid = require 'pid-file'
pid.create
  filename : 'pidfile.pid'
  deleteOnExit : true

When program exit normally, delete pid file.

But, in windows ctrl + C didn't make exit event


pid = require 'pid-file'
pid.create
  path : 'pid/app_name.pid'
  local : true

Create pid file locally to your current working directory.

Why Create Another PID module?

Other PID module I tried throw Error when exist PID File.

But, in my development progress kill process is usaul action.

So, I make another one.

License

MIT

Keywords

pid

FAQs

Package last updated on 12 Oct 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.