Skip to content

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

Funksjon: defaultRegistry()

defaultRegistry(): Promise<SimpleIconsRegistry>

Beta

Importer simple-icons-pakken ved behov som en SimpleIconsRegistry.

Returnerer

Promise<SimpleIconsRegistry>

Modulen simple-icons sine si*-eksporter.

Eksempel

Mat inn registeret som lastes inn ved behov i token-hooken

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

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