Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Games and state

runClifunction

Run the command line. See toranpu --help for what it takes. Every deal comes from the seed, so the same command prints the same cards on every machine.

Import it

import { runCli } from "@johnmorrisdotca/toranpu";

Definition

function runCli(args: readonly string[], around?: CliSurroundings): CliResult

Parameters

NameTypeDescription
argsreadonly string[]

Arguments after the command name.

around (optional)CliSurroundings

Environment, locale, input and random source supplied by the host.

Returns

CliResult

Run the command line. See toranpu --help for what it takes. Every deal comes from the seed, so the same command prints the same cards on every machine.

Examples

import { runCli } from "@johnmorrisdotca/toranpu";

console.log(runCli(["--help"], { colour: false }).code);
0

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.