nanos world API Reference Unofficial documentation
Static function Server Slow

Server.GetPackages

Returns a list of Packages running, optionally returns all Packages installed in the server

Syntax

Lua
Server.GetPackages(only_loaded = true, package_type_filter = PackageType.All)

Parameters

Name Type Default Description
only_loaded optional boolean true Set to true the function return only loaded and running packages. Caution: setting to false will retrieve Packages list from disk, which is a slow operation!
package_type_filter optional PackageType PackageType.All Which Package type to return. Leave it default to return all types.

Returns

  • table[] a list of Packages data
    Table fields
    • title string
    • name string
    • type PackageType
    • version string
    • author string