DeShawn Williams DeShawn Williams - 5 months ago 15
Javascript Question

How I trigger the "System Bell" in nodejs

I'm running a long running custom nodejs script and would like to be notified when the script is completed.

How do I make nodejs trigger the "System Bell"?

Answer

Output the BELL character (ASCII 7) to the standard output.

console.log('\u0007');

References