Web - AlsoGhostglowDev/Ghost-s-Utilities GitHub Wiki

web.lua

a Tool for interacting with the web.

local web = require 'ghostutil.web'

Methods

getDataFromUrl(url: string): string

Fetches data from the specified URL.
(Aliases: getDataFromWeb, getDataFromWebsite)

Parameters:

  • url: The URL of the target website to fetch the data from.

Returns: The fetched website's data in string if available.

View Example

-- trying to fetch Psych Engine's current version:
-- returns "1.0.4"
web.getDataFromUrl('https://raw.githubusercontent.com/ShadowMario/FNF-PsychEngine/refs/heads/main/gitVersion.txt')

─────────────────────────

loadBrowser(url: string): void

Opens the website using user's default browser with the given URL.
(Aliases: loadURL)

Parameters:

  • url: The URL of the website to open.
View Example

-- this will try to load YouTube on your default browser.
web.loadBrowser('https://youtube.com')


GhostUtil 3.0.0Docs 3.0.0, Revision 1

a Lua Library made by GhostglowDev; for Psych Engine
© 2025 GhostglowDevGhost's Utilities
Licensed under the MIT License.

⚠️ **GitHub.com Fallback** ⚠️