/wasm-cppjieba

Build cppjieba to webassembly and run on web worker ✂️

Primary LanguageC++MIT LicenseMIT

wasm-cppjieba

Build cppjieba to webassembly and run on web worker ✂️

demo

Dependencies

Download and install emscripten Guide

git clone https://github.com/emscripten-core/emsdk.git
cd emsdk

# Download and install the latest SDK tools.
./emsdk install latest
# Make the "latest" SDK "active" for the current user.
./emsdk activate latest

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

Download & Compile

git clone --recurse-submodules git@github.com:YingshanDeng/wasm-cppjieba.git

npm run build

open this link in the browser: http://localhost:8081/demo/index.html

Use Cases

CodeMirror × wasm-cppjieba