https://github.com/laqudee/vue-use-wasm
https://github.com/laqudee/vue-use-wasm
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/laqudee/vue-use-wasm
- Owner: laqudee
- Created: 2023-05-25T08:50:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T14:42:33.000Z (about 3 years ago)
- Last Synced: 2025-10-11T02:15:51.588Z (10 months ago)
- Language: Vue
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-use-wasm
- 使用wasm-pack publish发布到 npm上
```shell
# cd hello-wasm
wasm-pack publish
```
- 引入
```shell
pnpm add test-wasm-tool
```
- 使用
```js
import { to_string, add } from 'test-wasm-tool'
console.log(to_string(5) + to_string(1))
console.log(add(1, 2))
```