Getting Started
Introduction
2 • Built-in Libraries

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 (opens in a new tab), table (opens in a new tab), string (opens in a new tab), 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.