# Packages
Package k6 implements the module imported as 'k6' from inside k6.
# Functions
ExportGloballyModule sets all exports of the provided module name on the globalThis.
NewModuleResolver returns a new module resolution instance that will resolve.
NewModuleSystem returns a new ModuleSystem for the provide VU using the provided resoluter.
Register the given mod as an external JavaScript module that can be imported by name.
# Structs
Exports is representation of ESM exports of a module.
ModuleResolver knows how to get base Module that can be initialized.
ModuleSystem is implementing an ESM like module system to resolve js modules for k6 usage.
RunSourceDataResult helps with the asynchronous nature of ESM it wraps the promise that is returned from Sobek while at the same time allowing access to the module record.
# Type aliases
FileLoader is a type alias for a function that returns the contents of the referenced file.