``` writer.on('finish', () => { console.log('All writes are now complete.'); }); ``` should be before ``` writer.end('This is the end\n'); ``` https://nodejs.org/api/stream.html#stream_event_finish