Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toyobayashi/zxing-demo


https://github.com/toyobayashi/zxing-demo

Last synced: 28 days ago
JSON representation

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:unix

npm run cmake:build
```

VSCode Live Server 打开 `docs/index.html`。

## 构建 Node.js 原生模块

```bash
npm run gyp:rebuild

npm test
```