Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds configuration for esm.sh requests.
func (*Client) FetchPackageFiles ¶
func (c *Client) FetchPackageFiles(ctx context.Context, name, version string) (library.Files, string, error)
FetchPackageFiles retrieves package metadata from esm.sh. It calls the ?meta endpoint, then parses the returned JavaScript snippet to extract the version and the main export file URL. It returns a single file in the library.Files slice.
Click to show internal directories.
Click to hide internal directories.