Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.27 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.27 KB

game-text-cli

This npm converts all strings passed as arguments into hiragana.

The converted strings are then displayed at regular intervals

game-text-cli.mp4

.

This npm uses gooLab's hiragana conversion API.

image

Usage

1. Application ID Settings

Please agree to the gooLab API Usage Registration and obtain an Application ID.

Then, set the environment variables with the following command.

export GOO_LABO_APP_ID = ‘YOUR_APPLICATION_ID’

2. Executing the Command

Execute it by passing a string as an argument as follows.

npx gt "string"

All strings are converted to hiragana, line-breaks are made in phrase, and the text is displayed at regular intervals.

Example:

❯ npx gt "吾輩は猫である。名前はまだない。"

わがはいは
ねこである

なまえは
まだ
ない

Notes

This npm uses the strings converted by the hiragana conversion API as is.

Kanji with multiple readings, alphabets, and numbers may not be displayed as expected.