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
| Name | Type | Description |
|---|---|---|
env (optional) | Record<string, string | undefined> | undefined | The environment, for the language: |
locale (optional) | string | undefined | The system's language where the environment names none: what |
now (optional) | number | undefined | The time, in epoch milliseconds, for |
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)