{"id":"csqrl/packager","name":"packager","scope":"csqrl","platform":"roblox","description":"https://github.com/csqrl/packager","version":"0.1.3","latest":"0.1.3","versions":["0.1.0","0.1.1","0.1.2","0.1.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{"csqrl/dump-parser":{"version":"^0.1.2","alias":"DumpParser"}},"integrity":"dce1b3c94084fea3caa244d3a6670a428660247c40d75986aa26cf36b6bed59f","likes":0,"downloads":0,"install":"forest install csqrl/packager","url":"https://forest.dev/p/roblox/csqrl/packager","files":"https://api.forest.dev/ai/package/roblox/csqrl/packager/files","readme":"# Packager\n\nPackages up an Instance or tree of Instances into a single table.\nSupports linking of Instance-based properties to their corresponding\nInstance (as long as the Instance is within the tree being packaged).\n\n## Usage\n\n```lua\nlocal Packager = require(script.Parent.Packager)\n\n-- Create a new Packager from the latest Roblox API dump\nlocal packager = Packager.fetchFromServer()\n\nlocal tree = packager:CreatePackage(workspace.MyModel)\n--[[\n  {\n    Refs = {\n      [MyModel<Model>] = \"AABBCC\",\n    },\n    Tree = {\n      Name = \"MyModel\",\n      ClassName = \"Model\",\n      Ref = \"AABBCC\",\n      Properties = {\n        PrimaryPart = {\n          Type = \"Ref\",\n          Value = \"BBCCDD\",\n        },\n      },\n      Children = {\n        {\n          Name = \"Part\",\n          ClassName = \"Part\",\n          Ref = \"BBCCDD\",\n          ...,\n        },\n      },\n      Attributes = {\n        OwnerId = {\n          Type = \"number\",\n          Value = 1233456789,\n        },\n      },\n      Tags = { \"Tag1\", \"Tag2\" },\n    },\n  }\n]]\n```\n","readmeTruncated":false}