Skip to content

Run a Node.js script as a daemon/service in the background

Notifications You must be signed in to change notification settings

SkyLined/pBackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pBackground

Run a Node.js script as a daemon/service in the background

Getting Started

  1. Install pBackground globally via NPM.

npm install pbackground -g

Optionally: rename pbackground to pBackground: npm is unable to handle the complexity of uppercase characters in a module name. Node.js on Windows does not have this problem, so renaming the folder is not required for you to use the module.

  1. Run your script using the node-bkg shortcut.

node-bkg your-script arguments...

Notes

Stopping the script

There is currently no way to stop the script, other than to forcefully terminate the corresponding node.exe process.


License

This code is licensed under CC0 v1.0 Universal.

About

Run a Node.js script as a daemon/service in the background

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published