Skip to content
Jason Godesky edited this page Jul 16, 2026 · 1 revision

getID returns the final, 16-digit alphanumeric sequence from a Foundry VTT UUID — the part that uniquely identifies a document among its siblings.

Parameters

uuid: string

A Foundry VTT UUID.

Returns

The final, 16-digit alphanumeric sequence from a Foundry VTT UUID — the part that uniquely identifies a document among its siblings.

Examples

import { getID } from '@revolutionarygamesco/common'

getID('Actor.1111111111111111') // 1111111111111111
getID('JournalEntry.2222222222') // 2222222222
getID('JournalEntry.2222222222.JournalEntryPage.3333333333333333') // 3333333333333333

Clone this wiki locally