Skip to content

Documentation

Bulcane edited this page Oct 21, 2023 · 4 revisions

Functions

system.shutdown()

This function allows you to power off the computer.

system.restart()

Use this function to reboot the computer.

system.sleep()

This function puts the computer into sleep mode.

var text = font("text", "red")

This function lets you change the text style. You can choose from various colors ("blue," "red," "green," "yellow") and apply styles like "bold" or "ul" (underline).

console.execute("start")

Use this function to run a specific command in the console.

console.warn("warn!")

This function enables you to issue a warning in the console. It's useful for reporting potential issues or error situations.

console.info()

This function allows you to log information to the console. It's useful for logging and debugging purposes.

let input = console.input("What's your name")

This function prompts the user for input through the console. The text specified as an argument will be displayed as a prompt for the user.

await sleep(3232)

This function makes the program wait for the specified number of milliseconds before executing the next code.

let random1 = random(1, 2)

This function returns a random number within the specified range (in this case, between 1 and 2).

fetch("https://www.google.com")

Use this function to make an HTTP request to a specific URL.

let path = readFile("path")

This function reads the content of a specific file and returns it.

writeFile("hi.txt", "content")

With this function, you can write or create a file with a specific name and content.

mkdir("hi2")

This function creates a new directory with the specified name.

rmdir("hi2")

This function removes an existing directory with the specified name.

delFile("hi.txt")

Use this function to delete a specific file.

getpackage()

This function returns the content of the package.json file.

require.json()

This function allows you to request and retrieve the content of specific JSON files.

new Server(port).Send("<div>").Start()

This function creates an HTTP server on the specified port, sends a specific HTML response ("

"), and starts the server.

print("file", "printername")

Use this function to print a specific document or file on a specified printer.

npm.install("") / npm.global.install()

This function installs a specific npm package.

npm.uninstall("") / npm.global.uninstall()

This function uninstalls a specific npm package.