@toriyama/han2zen
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @toriyama/han2zen

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

19 kB

Total Files

7

Last publish

Collaborators

  • toriyama