Module package

Module package 

Source
Expand description

Download and unpack packages and package indices.

Structs§

PackageStorage
Holds information about where packages should be stored and downloads them on demand, if possible.

Constants§

DEFAULT_NAMESPACE
The public namespace in the default Typst registry.
DEFAULT_PACKAGES_SUBDIR
The default packages sub directory within the package and package cache paths.
DEFAULT_REGISTRY
The default Typst registry.

Functions§

default_package_cache_path
Attempts to infer the default package cache directory from the current environment.
default_package_path
Attempts to infer the default package directory from the current environment.