Reconstruct - A module that recreates data-types

Reconstruct is a module that reconstructs (decompiles) data-types into a readable, usable format.

More information and Documentation :
Documentation

Example code

local Params = CatalogSearchParams.new()
Params.CreatorName = "3F1VE"
Params.MaxPrice = 100
Params.MinPrice = 0
Params.SortType = Enum.CatalogSortType.MostFavorited

local input = {
	['Player'] = {
		["Name"] = "3F1VE",
		["AccountAge"] = 2391,
	},
	['CatalogSearchParams'] = Params
}

local reconstructor = require(workspace.Reconstruct).new({
	AppendVariable = true,
	WrapKeysInBrackets = false
})

print(reconstructor:Reconstruct(input))

--[[ 
local CatalogSearchParams_ = CatalogSearchParams.new()
CatalogSearchParams_.MaxPrice = 100
CatalogSearchParams_.SortType = Enum.CatalogSortType.MostFavorited
CatalogSearchParams_.BundleTypes = {}
CatalogSearchParams_.AssetTypes = {}
CatalogSearchParams_.CreatorName = "3F1VE"
local output = {
	["CatalogSearchParams"] = CatalogSearchParams_,
	["Player"] = {
		["Name"] = "3F1VE",
		["AccountAge"] = 2391,
	},
}
]]

If you need any further assistance, information, or anything else, reply to this post.
I will get back to you as soon as I can.

You should attach a few pictures so we can see what exactly the module outputs

2 Likes

in the past I worked on something similar, although it only reconstructs tables, and not userdata(s), the use cases are really limited for it honestly

1 Like

I agree, I mainly made this module just to test my capabilities and to toy around with github