Skip to content

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

Notifications You must be signed in to change notification settings

Judeeeee/game-text-cli

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published