3 const flaggedRespawn = require('../../');
5 // get a list of all possible v8 flags for the running version of node
6 const v8flags = require('v8flags').fetch();
8 flaggedRespawn(v8flags, process.argv, function (ready, child) {
10 console.log('Running!');
12 console.log('Special flags found, respawning.');
14 if (child.pid !== process.pid) {
15 console.log('Respawned to PID:', child.pid);