Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toyobayashi/zxing-demo
https://github.com/toyobayashi/zxing-demo
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/toyobayashi/zxing-demo
- Owner: toyobayashi
- Created: 2021-12-05T16:29:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T06:40:35.000Z (8 months ago)
- Last Synced: 2024-05-02T02:06:50.604Z (6 months ago)
- Language: C++
- Homepage: zxing-demo.vercel.app
- Size: 4.2 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAssembly & Node-API 实现二维码识别与生成
一套代码同时编译到 WebAssembly 和 Node.js 原生模块。
## 安装依赖
```bash
npm install --ignore-scripts
```## 构建 WebAssembly
```bash
npm run clean# Windows
npm run cmake:win# Linux / macOS
# npm run cmake:unixnpm run cmake:build
```VSCode Live Server 打开 `docs/index.html`。
## 构建 Node.js 原生模块
```bash
npm run gyp:rebuildnpm test
```