Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
3
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

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

  • 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