Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

Reference · Command line

CliSurroundingstype

What the command line is run in. All of it is optional.

Import it

import type { CliSurroundings } from "@johnmorrisdotca/kotoba/cli";

Definition

type CliSurroundings = {
    env?: Record<string, string | undefined>;
    locale?: string;
    now?: number;
};

Members

NameTypeDescription
env (optional)Record<string, string | undefined> | undefined

The environment, for the language: LC_ALL, LC_MESSAGES and LANG.

locale (optional)string | undefined

The system's language where the environment names none: what Intl says, on Windows.

now (optional)number | undefined

The time, in epoch milliseconds, for daily with no --date. Now, unless given.

Examples

import type { CliSurroundings } from "@johnmorrisdotca/kotoba/cli";

const value: CliSurroundings = {locale:"en-US"};
console.log(value);
{ locale: 'en-US' }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.2.0.