@toriyama/han2zen
v0.1.1
Published
WASM Module which converts Halfwidth Katakana to Fullwidth Katakana
Downloads
3
Readme
han2zen
半角カタカナを全角カタカナに変換するモジュール WASM module which converts halfwidth katakana to fullwidth katakana
Installation
npm install @toriyama/han2zen
Usage
import { han2zen } from "@toriyama/han2zen";
console.log(han2zen("アリガトウ")); // アリカ゛トウ
or
import * as wasm from "@toriyama/han2zen";
console.log(wasm.han2zen("コンバンハ")); // コンハ゛ンハ
Development
# Folk this repo
git clone https://github.com/YUUKIToriyama/han2zen.git
cd han2zen
# If you haven't installed wasm-pack yet, please install it
cargo install wasm-pack
# Build with wasm-pack
wasm-pack build
# Run a demo
cd web
npm install
npm start