title: Create File object without saving
body: <p>I'm trying to look for a way to create a <code>.txt</code> File object without saving it to disk in <code>Node.js</code>. In browser I'd do something like</p>
  <pre class="lang-js prettyprint-override"><code>new File(['file_contents'], 'file_name.txt', {type: 'text/plain'})
  </code></pre>
  <p>The end aim is to create a <code>.txt</code> file object temporarily for my Discord Bot to send as a message attachment.</p>
  <p>From the <code>discord.js</code> documentation, I presume I'm supposed to create a <code>Buffer</code> or <code>Stream</code> object representing the file.</p>
  <p>I'm already using <code>require('node-fetch')</code> library to read attachments in messages, if that has any relevancy (but can't see anything in their docs on this either).</p>