The linked, typed 40kdc dataset.
The default dataset is built once from the data embedded in this package; the top-level collections below are its accessors, re-exported for the ergonomic one-liner form.
import { units } from "@alpaca-software/40kdc-data";units.find("Kharn")!.abilities .filter(a => a.phases.includes("shooting")) .map(a => a.id); // ["berzerker-frenzy"] Copy
import { units } from "@alpaca-software/40kdc-data";units.find("Kharn")!.abilities .filter(a => a.phases.includes("shooting")) .map(a => a.id); // ["berzerker-frenzy"]
import { factions } from "@alpaca-software/40kdc-data";factions.find("World Eaters")!.units.length; Copy
import { factions } from "@alpaca-software/40kdc-data";factions.find("World Eaters")!.units.length;
The linked, typed 40kdc dataset.
The default dataset is built once from the data embedded in this package; the top-level collections below are its accessors, re-exported for the ergonomic one-liner form.
Example
Example