Commit b1803d64 authored by Éloïs's avatar Éloïs

[docs] comply markdown linter

parent a2188a74
......@@ -10,7 +10,7 @@ A tools box lib for DUP (Dividend Universal Protocol) in WebAssembly (WASM).
You can use DUP tools directly in [modern browsers](https://caniuse.com/#feat=wasm) or server side with [node.js](https://nodejs.org/).
#### Project state
## Project state
[![npm version](https://img.shields.io/npm/v/dup-tools-wasm.svg)](https://www.npmjs.com/package/dup-tools-wasm)
[![pipeline status](https://git.duniter.org/tools/dup-tools-wasm/badges/master/pipeline.svg)](https://git.duniter.org/tools/dup-tools-wasm/commits/master)
......@@ -25,36 +25,36 @@ You can use DUP tools directly in [modern browsers](https://caniuse.com/#feat=wa
1. install [npm](https://www.npmjs.com/get-npm)
2. Create an empty folder for your project, and open a terminal in it.
3. To install `dup-tools-wasm` run
```bash
npm install dup-tools-wasm
```
```bash
npm install dup-tools-wasm
```
4. create a js file `myFirstExperiment.js` with the following code :
```javascript
import * as dup from "dup-tools-wasm";
```javascript
import * as dup from "dup-tools-wasm";
const keypair = dup.generate_ed25519_keypair("salt", "password");
console.log(keypair);
```
const keypair = dup.generate_ed25519_keypair("salt", "password");
console.log(keypair);
```
>>> WiP
>>> WiP
5. ![Fork](http://forked.yannick.io/images/favicon.png) for in browser use case :
create an html file `index.html` with the following code :
create an html file `index.html` with the following code :
```html
<meta charset="utf-8"/>
<h1>See your console result (F12 by default)</h1>
<script module src="myFirstExperiment.js"></script>
```
```html
<meta charset="utf-8"/>
<h1>See your console result (F12 by default)</h1>
<script module src="myFirstExperiment.js"></script>
```
5. ![Fork](http://forked.yannick.io/images/favicon.png) for node.js use case :
6. ![Fork](http://forked.yannick.io/images/favicon.png) for node.js use case :
>>> End WiP
## Contribute
### 🔮 Prerequisites
......@@ -63,18 +63,18 @@ You need [wasm-pack](https://github.com/rustwasm/wasm-pack#--wasm-pack) and it p
### 🛠️ Build with `wasm-pack build`
```
```bash
wasm-pack build
```
### 🔬 Test in Headless Browsers with `wasm-pack test`
```
```bash
wasm-pack test --headless --firefox
```
### 🎁 Publish to NPM with `wasm-pack publish`
```
```bash
wasm-pack publish
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment