UNPKG

@yoyo-org/progressive-json

Version:

Stream and render JSON data as it arrives - perfect for AI responses, large datasets, and real-time updates

5 lines (4 loc) 163 B
export function extractPlaceholderId(reference: string): number { const match = reference.match(/^ref\$(\d+)$/); return match ? parseInt(match[1], 10) : -1; }