canonicalCardString
Canonical two-character form (Th, Ac, …). Throws if invalid.
canonicalCardString(card: string): string
Import
const poker = require('poker-calculations');
When to use
Use to normalize user input (10h → Th) before storage or deduplication.
How to use
const card = poker.canonicalCardString('10h'); // "Th"