A generic parser for the Roblox API dump. Inspired by @corecii's API Dump (Static) and @raphtalia's RobloxAPI libraries.
Documentation can be found at https://csqrl.github.io/dump-parser.
Dump Parser is available via Wally.
# wally.toml
[dependencies]
DumpParser = "csqrl/[email protected]"
$ wally install
Download a copy of the latest release from the GitHub repo, and compile it using Rojo. From there, you can drop the binary directly into your project files or Roblox Studio.
local DumpParser = require(path.to.DumpParser)
local Dump = DumpParser.fetchFromServer()
local PartClass = Dump:GetClass("Part")
-- Get a list of all properties on "Part"
print(PartClass:GetProperties())
--[[
Get a list of safe-to-use properties on "Part". This is
functionally equivalent to:
```lua
PartClass:GetProperties(
Filter.Invert(Filter.Deprecated), -- Include non-deprecated
Filter.HasSecurity("None"), -- Include properties with no read/write security
Filter.Scriptable -- Include properties that can be set in scripts
)
```
`GetProperties`, `GetEvents`, `GetFunctions` and `GetCallbacks`
all accept a variable number of filters as arguments. This
allows you to filter down the list of results to only what
you need.
--]]
print(Dump:GetProperties("Part"))