Skip to content

pantoken-root / plugins/pantoken/simple-icons/src / defaultRegistry

Funktion: defaultRegistry() ​

defaultRegistry(): Promise<SimpleIconsRegistry>

Beta

Doven indlæsning af simple-icons pakken som et SimpleIconsRegistry.

Returnerer ​

Promise<SimpleIconsRegistry>

Modulet simple-iconss si* eksporter.

Eksempel ​

Føj det doven-indlæste register til token-hooket

ts
import { simpleIcons, defaultRegistry } from "@pantoken/plugin-simple-icons";

const registry = await defaultRegistry();
simpleIcons({ registry, slugs: ["github"] });