title: How can I read a file from a path, in Javascript?
body: <p>There are a lot of solutions that are based on the fetch api or the XMLHttpRequest, but they return CORS or same-origin-policy errors.</p>
  <p>The File/Filereader API works out of the box , but only for files chosen by the user via a input file (because that is the only way to import them as a File obj)</p>
  <p>Is there a way to do something simple and minimal like</p>
  <pre><code>const myfile = new File('relative/path/to/file') //just use a path
  const fr = new FileReader();
  fr.readAsText(myfile);
  </code></pre>
  <p>Thanks</p>