keep-running

keeps node app running / prevents node app from exiting

Usage no npm install needed!

<script type="module">
  import keepRunning from 'https://cdn.skypack.dev/keep-running';
</script>

README

keep-running

Node.js utility that keeps node app running / prevents node app from exiting

Install

npm install keep-running

Usage

  • check example/example.js
node example/example.js

program runs until you manually stop it (Ctrl+C)

  • code sample
const keepRunning = require('keep-running');
keepRunning.init()(() => console.log('running forever....'));

Limitations

  • tested & used only in Linux

Testing

npm install -g mocha
mocha test