1.0.11 • Published 5 years ago

js2wc v1.0.11

Weekly downloads
31
License
-
Repository
github
Last release
5 years ago

js2wc

Wrap js into wasm cpp source code to make it can be compiled with emcc

Why js2wc

We want to protected our code

Workflow

  1. Run npm init in a empty directory
  2. Create a file named main.js and input code console.log("Hello World");
  3. Run node node_modules/js2wc/cli.js --input=main.js, this will create a file named main.cpp
  4. Run emcc -std=c++11 -Wall --bind main.cpp, this will create two files named a.out.js and a.out.wasm
  5. Run node a.out.js, this will print Hello World to console
1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago