The modern web leans heavily on Node.js for both development and server-side management. With the advent of increasingly complex browser applications that perform computationally expensive operations, performance increases can be incredibly beneficial. In this chapter, we're going to describe the various ways you can integrate WebAssembly with Node.js through the use of various examples.
Our goal for this chapter is to understand the following:
- The advantages of integrating WebAssembly with Node.js
- How to interact with the Node.js WebAssembly API
- How to utilize Wasm modules in a project that uses Webpack
- How to write unit tests for WebAssembly modules using npm libraries