Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.25 KB

2-built-in-libraries.md

File metadata and controls

27 lines (21 loc) · 1.25 KB

Built-in Libraries

Lune contains a large set of built-in libraries, much like Luau itself. These libraries include, but are not limited to, these libraries and their common use cases:

  • The fs library for manipulating files
  • The net library for making HTTP requests
  • The process library for executing external programs and processes

This is just a small subset of what is available in Lune, but for now, what is important is that these libraries must be imported using a special kind of require statement:

local fs = require("@lune/fs")
local net = require("@lune/net")
local process = require("@lune/process")

As you can see above, unlike Luau's standard libraries such as math, table, string, and others, Lune's built-in libraries are not available as global variables and importing them before using them is required (pun intended).

The next few sections will contain examples of how to run scripts, more specific usage of Lune's built-in libraries, and what they are most commonly used for.