Reference
Command line
import { … } from "@johnmorrisdotca/kotoba/cli";
469.1 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
cliLanguage | function | The language the command line speaks: --lang, or the environment's, or the system's; Japanese for ja…, English for anything else. |
CliResult | type | What the command line came to. |
CliSurroundings | type | What the command line is run in. |
CliTier | type | Which words of a list: the easy answers, every answer, or every word that may be guessed. |
CliWords | type | The lists the command line reads: the alphabet languages and Japanese kana. |
runCli | function | Run the command line. |