pbackground

0.0.9 • Public • Published

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.

Package Sidebar

Install

npm i pbackground

Weekly Downloads

0

Version

0.0.9

License

CC0-1.0

Last publish

Collaborators

  • skylined