Skip to content

Commit

Permalink
Use bash format in README
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor committed Dec 18, 2024
1 parent 72c3f1c commit d875927
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,37 @@

## Build (browser)
Build wasm package (this will create `pkg` folder):
```shell
```bash
wasm-pack build
```

Install `npm` dependencies for local development server:
```shell
```bash
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:

```shell
```bash
npm run start
```

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

## Build (nodejs)
Build wasm package for `nodejs` (this will create `node/pkg` folder):
```shell
```bash
wasm-pack build --target nodejs --out-dir node/pkg
```

Install `npm` dependencies:
```shell
```bash
cd node
npm install
```

Run `wasm-hasher` from `node` folder:
```shell
```bash
node run-hasher.js
```

0 comments on commit d875927

Please sign in to comment.