HTML DOM write() Method - W3Schools
The write() method is mostly used for testing: If it is used after an HTML document is fully loaded, it will delete all existing HTML. Note: When this method is not used for testing, it is often used to write some text to an output stream opened by the document.open() method. See "More Examples" below.
GitHub - dillontcordova/WriteJs: Create and write a js ...
Create and write a js file from a single callback. Choose to create a zip or js file from the simplicity of a method call. - dillontcordova/WriteJs
Writing to Files in Node.js - stackabuse.com