File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,37 @@ descryption operations.
23
23
npm install @kanru/rage-wasm
24
24
```
25
25
26
- ### 🛠️ Build with ` wasm-pack build `
26
+ The package exports a single module with 5 async methods. Upon first use
27
+ an inlined webassembly module will be loaded asynchronously.
28
+
29
+ - keygen - generate x25519 key pairs
30
+ - encrypt_with_x25519
31
+ - decrypt_with_x25519
32
+ - encrypt_with_user_passphrase
33
+ - decrypt_with_user_passphrase
34
+
35
+ ### Examples
36
+
37
+ Some examples with parcel or shadow-cljs are available under the ` examples/ ` directory.
38
+
39
+ ## Contribute
40
+
41
+ ### 🛠️ Build
27
42
28
43
```
29
- wasm-pack build
44
+ npm install
45
+ npm run build
30
46
```
31
47
32
- ### 🔬 Test in Headless Browsers with ` wasm-pack test `
48
+ ### 🎁 Publish to NPM
33
49
34
50
```
35
- wasm-pack test --headless --firefox
51
+ npm publish
36
52
```
37
53
38
- ### 🎁 Publish to NPM with ` wasm-pack publish `
54
+ ### 🔬 Test in Headless Browsers with ` wasm-pack test `
39
55
40
56
```
41
- wasm-pack publish
57
+ wasm-pack build
58
+ wasm-pack test --headless --firefox
42
59
```
You can’t perform that action at this time.
0 commit comments