Skip to content

Code Libraries

NiftyNarwhal11 edited this page May 3, 2024 · 1 revision

The baselibrary

The baselibrary is a library of code that comes default with ModularOS. You require it with baselibrary = require(".libraries/baselibrary") We plan to add more to it in the future but here is what it does now:

printCenter

The baselibrary.printCenter(string) works to print string to the center of the screen.

wget

wget(string URL, string save-path, bool run-after-save) is the same as CraftOS:wget. The run-after-save argument tells it weather or not to run the downloaded file after it is downloaded.

Clone this wiki locally