Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1 KB

README.md

File metadata and controls

44 lines (34 loc) · 1 KB

Wasm Hasher

Requirements

Build (browser)

Build wasm package (this will create pkg folder):

wasm-pack build

Install npm dependencies for local development server:

cd www
npm install

Open a new terminal to run de development server. Running the server in a new terminal lets us leave it running in the background, and doesn't block us from running other commands in the meantime. In the new terminal, run this command from the www folder:

npm run start

Navigate your Web browser to http://localhost:8080/

Build (nodejs)

Build wasm package for nodejs (this will create node/pkg folder):

wasm-pack build --target nodejs --out-dir node/pkg

Install npm dependencies:

cd node
npm install

Run wasm-hasher from node folder:

node run-hasher.js