game-text-cli

1.0.0 • Public • Published

game-text-cli

This npm converts all strings passed as arguments into hiragana.

The converted strings are then displayed at regular intervals

https://github.com/Judeeeee/game-text-cli/assets/43412616/ea4cb02b-3948-4ed4-8398-d96422a28967

.

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.

Readme

Keywords

Package Sidebar

Install

npm i game-text-cli

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

7.67 kB

Total Files

6

Last publish

Collaborators

  • judeee