Skip to content

Commit

Permalink
license
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeApe committed Jul 24, 2024
1 parent 6c33c0d commit e64fcdd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Thanks for https://github.com/skywind3000/ECDICT 's dictionary data.
GOARCH=wasm GOOS=js go build -o ecdict.wasm
```

or just use the prebuilt wasm file from https://github.com/mojocn/wasmecdict/releases/download/v1.0.1/ecdict.wasm

## How to use in JavaScript

```typescript
Expand Down Expand Up @@ -82,6 +84,15 @@ async function loadWasm(wasmUrl: string = "https://xxx.xxx.ame/ecdict.wasm") {

```

useage:

```typescript

const wordInfo = window.lookUp('Awesome');
console.log(wordInfo);

```



## how to use in Go
Expand Down

0 comments on commit e64fcdd

Please sign in to comment.