Library Installation Demo - Minimal Example for External Repository Usage
web-ym2151 を自分のプロジェクトで使うための最小手順です。WASM は同梱済みなのでそのまま利用できます。
# 1. GitHub から npm インストール(WASM 同梱・推奨)
npm install cat2151/web-ym2151
cp node_modules/web-ym2151/sine_test.js .
cp node_modules/web-ym2151/sine_test.wasm .
# 2. 公開ページからプリビルド版を取得する場合
curl -O https://cat2151.github.io/web-ym2151/sine_test.js
curl -O https://cat2151.github.io/web-ym2151/sine_test.wasm
# 3. 自分でビルドする場合(Emscripten 必要)
cd node_modules/web-ym2151
npm install
./build.sh --build-only
cp sine_test.js ../../
cp sine_test.wasm ../../