Below is a simple example how I am using firebase:
let firebase = require(\'firebase\'); firebase.initializeApp({ serviceAccount: \'./config/firebase.json\
This is something that has been fixed in the version 3.4.1 of the JavaScript SDK.
firebase.database().goOffline() now properly releases the database so the Node.js process can exit.
firebase.database().goOffline()