Compiling JavaScript to WebAssembly (WASM) or ASM.JS with NectarJS

Compiling JavaScript to WebAssembly (WASM) or ASM.JS presents some advantages :

  • No need to obfuscation
  • Efficient execution
  • Portability
  • NodeJS also supports execution of ASM.JS (and soon WebAssembly)
  • You can distribute your Web/NodeJS JS code in a binary format

Become a part of NectarJS on KickStarter

The code

require("fs");

var test = "./test.txt";
fs.writeFileSync(test, "Compiled with NectarJS !");
console.log(fs.readFileSync(test));

Compilation with NectarJS and execution with NodeJS

We are compiling this code with NectarJS in a standard shell and executing it with NodeJS.

Support NectarJS on KickStarter

Adrien