Skip to content

guillemcordoba/run-singleton-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

singleton-cli

Node CLI tool to run a process only once in a directory.

This CLI tool will check if the given process is already being run in the same directory. If it's not running, it will start the process as normal. If it's already running, it will not run it.

This is useful if you need to execute multiple parallel processes but only want a singleton execution of one of the subprocesses.

Usage

{
  "name": "where",
  "version": "0.0.2",
  "scripts": {
    "build:watch": "run-singleton \"tsc -w\""
  },
  "devDependencies": {
    "run-singleton-cli": "^0.0.2"
  }
}

About

Node CLI tool to run a process only once in a directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published