Home / Function/ bunny() — astro Function Reference

bunny() — astro Function Reference

Architecture documentation for the bunny() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e4c5b3fc_94d6_cab6_1bcd_25ba0cf88748["bunny()"]
  b2a950f3_8ca8_375e_0c71_a3eaca706b9a["index.ts"]
  e4c5b3fc_94d6_cab6_1bcd_25ba0cf88748 -->|defined in| b2a950f3_8ca8_375e_0c71_a3eaca706b9a
  style e4c5b3fc_94d6_cab6_1bcd_25ba0cf88748 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/providers/index.ts lines 32–47

function bunny(): FontProvider {
	const provider = providers.bunny();
	let initializedProvider: InitializedProvider | undefined;
	return {
		name: provider._name,
		async init(context) {
			initializedProvider = await provider(context);
		},
		async resolveFont({ familyName, ...rest }) {
			return await initializedProvider?.resolveFont(familyName, rest);
		},
		async listFonts() {
			return await initializedProvider?.listFonts?.();
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does bunny() do?
bunny() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/providers/index.ts.
Where is bunny() defined?
bunny() is defined in packages/astro/src/assets/fonts/providers/index.ts at line 32.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free