- Github のリリースページ へ移動し、目的のバージョンを確認 (基本的に最新の利用を推奨)
- Assets の欄にある KanaCapture-x.x.x.tar.gz(x.x.x はバージョンと同じ) をダウンロードし解凍
- umd もしくは esm ディレクトリの中身をサイトに設置
- 下記コードをHTML内に記述
推奨 Option 1. CDN を利用する方法
jsDelivr を利用することで、直接ウェブサイトに導入することができます。
<script src="https://cdn.jsdelivr.net/npm/@shimoning/kana-capture@latest/dist/umd/index.js" defer></script>
<script type="module">
import * as KanaCapture from 'https://cdn.jsdelivr.net/npm/@shimoning/kana-capture@latest/dist/esm/index.js';
</script>
Option 2. Github に公開されているものをダウロード
Github のリリースページ から `Source code` を ZIP でダウンロードし、解凍してウェブサイトに導入します。
<script src="path/to/index.js" defer></script>
<script type="module">
import * as KanaCapture from 'path/to/index.js';
</script>
Option 3. NPM パッケージをインストール
NPM のパッケージとして配布しています。
Node.js で利用する場合は npm もしくは yarn 等でインストールしてください。
npm install @shimoning/kana-capture
yarn add @shimoning/kana-capture