search/
Start typing to search packages!
package_2
loader
By @kickdosage
Roblox
MirroredLoader
A simple loader module that supports script priorities.
Types
export type StartOptions = {
path: Instance,
deep_load: boolean? -- defaults to true,
priorities: { string }?,
predicate: ((ModuleScript) -> boolean)?,
method_name: string? -- defaults to 'init',
print_message: string?, -- the message to print when the method is being called. %s -> ModuleScript.Name
start_message: string?,
end_message: string?,
}
Code sample:
local loader = require(path.to.loader)
local path = path.to.scripts
local priorities = {
"player_data_service",
}
loader.start({
path = path,
deep_load = true,
priorities = priorities,
predicate = loader.matches_name("service$"),
method_name = "init",
start_message = ".:: INITIALIZING SERVER ::.",
print_message = "> Initializing %s",
end_message = ".:: FINISHED INITIALIZING SERVER ::.",
})
Package Details
Install command (Click to copy)
Version
0.3.1
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
