title: Importing the correct Wasi module in node.js
body: <p>I've been stuck on something for some time now. I'm trying to use WebAssembly from Node.js, but in order to do that, I need NodeJs to instantiate a Wasi object. This is implemented here: <a href="https://github.com/nodejs/node/blob/master/lib/wasi.js" rel="nofollow noreferrer">https://github.com/nodejs/node/blob/master/lib/wasi.js</a> and the documentation is here: <a href="https://nodejs.org/api/wasi.html" rel="nofollow noreferrer">https://nodejs.org/api/wasi.html</a></p>
  <p>It is imported through <code>import { WASI } from 'wasi';</code></p>
  <p>But I have no idea how to access the correct wasi implementation, when I add wasi to the dependencies it will install <a href="https://www.npmjs.com/package/wasi" rel="nofollow noreferrer">https://www.npmjs.com/package/wasi</a> which is an old user implementation which I don't need. It also does not conform the API documentation from above, it is not usable. My IDE's (WebStorm) code inspection features act as if it is the correct implementation, but when executing the code, it becomes clear it's using a wrong implementation.</p>
  <p>If I don't install any at all package I get <code>Cannot find package 'wasi' imported from ...</code></p>
  <p>So the question is, how do I use the WASI class declared in <a href="https://github.com/nodejs/node/blob/master/lib/wasi.js" rel="nofollow noreferrer">https://github.com/nodejs/node/blob/master/lib/wasi.js</a>?</p>