Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs on exit event

import process from 'process';

process.on('exit', (code) => {
  console.log(`About to exit with code: ${code}`);
});
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #nodejs #exit #event
ADD COMMENT
Topic
Name
8+3 =