search/
Start typing to search packages!
package_2
startup
By @sbi-n
Roblox
MirroredStartup
A simple knit-like Startup
Installion
Wally
Example
On client,
local Startup = require("path/to/startup")
local app = Startup.new()
app:add(require("@controllers/hello-controller"))
app:add(require("@controllers/world-controller"))
app:run()
When on server.
local Startup = require("path/to/startup")
local app = Startup.new()
app:add(require("@services/hello-service"))
app:run()
Extend
local app = Startup.new()
app:add({
onPlayerAdded = function(player: Player)
end
}) -- the example of required module
local function playerAdded(player: Player)
app:execute("onPlayerAdded", player)
end
for _, player in Players:GetPlayers() do
task.spawn(playerAdded, player)
end
Players.PlayerAdded:Connect(playerAdded)
Exception
local app = Startup.new()
app:except(function(err: unknown) -- the promise error handler, single.
print(err)
end)
Package Details
Install command (Click to copy)
Version
0.3.6
License
MIT
Safe for commercial use
Automated license review — not legal advice.
