title: How to use "import" in node REPL
body: <p>Using the Node.js <a href="https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop" rel="noreferrer">REPL</a>, how can you <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" rel="noreferrer">import</a> modules using ecmascript syntax? Does any version of the <a href="https://nodejs.org/" rel="noreferrer">Node.js</a> REPL allow this now?</p>
  
  <p>In Node.js v10.16.0, I'm accessing the REPL using this command:</p>
  
  <pre><code>node --experimental-modules
  </code></pre>
  
  <p>source: <a href="https://nodejs.org/api/esm.html#esm_enabling" rel="noreferrer">https://nodejs.org/api/esm.html#esm_enabling</a></p>
  
  <p><a href="https://i.stack.imgur.com/B5hJG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B5hJG.png" alt="enter image description here"></a></p>
  
  <p>CommonJS is ancient technology. Is Node.js still under active development? I wonder if the <a href="https://github.com/denoland/deno" rel="noreferrer">deno</a> REPL can do this?</p>