Before exit scripts in Node.js

Published by Franklin on

Ever wonder how to do something just before a Node.js process ends? Safely close connections, clean up caches, or log your app’s status somewhere? Wonder no more. With this script you can do it. Have fun!

See it in action on RunKit

Source code


2018-08-14 – Reduced code to essence

Related stuff

Categories: Code

Leave a Reply

Your email address will not be published. Required fields are marked *