UNPKG

word-vault

Version:

A lightweight JavaScript package for English word definitions and collections.

6 lines (5 loc) 202 B
import { findCard } from "./findCard.js"; export async function getCardPronunciation({ id, region, }) { const wordData = await findCard(id); return wordData?.pronunciations?.[region] || null; }