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 · Card designs

CUSTOM_CARD_IDconstant

What a card's id may be, when a design of the page draws it: letters and digits, with -, _, . and : inside, up to 40.

Import it

import { CUSTOM_CARD_ID } from "@johnmorrisdotca/toranpu/card-faces";

Definition

const CUSTOM_CARD_ID: RegExp = /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,39}$/

Examples

import { CUSTOM_CARD_ID } from "@johnmorrisdotca/toranpu/card-faces";
console.log(CUSTOM_CARD_ID);
/^[A-Za-z0-9][A-Za-z0-9_.:-]{0,39}$/

What it prints (run when this page was built)

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