{"id":"dig1t/dlib","name":"dlib","scope":"dig1t","platform":"roblox","description":"Modules and Libraries for development in Roblox","version":"1.2.18","latest":"1.2.18","versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.16","1.1.17","1.1.18","1.1.19","1.1.20","1.1.21","1.1.22","1.1.23","1.1.24","1.1.25","1.1.26","1.1.27","1.1.28","1.1.29","1.1.30","1.1.31","1.1.32","1.1.36","1.1.38","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.2.10","1.2.11","1.2.12","1.2.13","1.2.17","1.2.18"],"license":"Apache-2.0","licenseRating":"safe","licenseCaveats":["Modified files must carry a notice of changes. If the package ships a NOTICE file, its attributions must be preserved."],"licenseVerified":true,"dependencies":{},"integrity":"f6e72144efbdf84b92aa1960220c0bf795483b012ee8b7f438ca45af062fa8ec","likes":0,"downloads":0,"install":"forest install dig1t/dlib","url":"https://forest.dev/p/roblox/dig1t/dlib","files":"https://api.forest.dev/ai/package/roblox/dig1t/dlib/files","readme":"[![CI](https://github.com/dig1t/dlib/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/dig1t/dlib/actions/workflows/ci.yml)\n\n# dLib\nModules and Libraries for development in Roblox.\n\n# Installing\n## Installing with wally\nAdd the below line to your wally.toml file\n```toml\ndlib = \"dig1t/dlib@1.2.18\"\n\n```\n## Installing with Roblox Studio\nDownload the rbxl file from the [releases](https://github.com/dig1t/dlib/releases) tab.\n\nOnce the place file is open, you can find the package inside `ReplicatedStorage.Packages`.\n\n### Usage\n```lua\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\n-- Require dLib from your installation location\n-- For this example we'll use ReplicatedStorage as dLib's parent location\n-- and we'll import dLib's built in Palette module\nlocal dLib = require(ReplicatedStorage.dlib)\nlocal Palette = dLib.Palette\n\nprint(Palette.get(\"blue\", 500))\n```\n\n## Using built-in module types\ndLib has a few built-in types that you can use to type your variables.\n\n### Promises\n\nMethod 1:\n```lua\nlocal Promise = dLib.Promise\n\nlocal myPromise: typeof(Promise.PromiseType) = Promise.new(function(resolve, reject)\n\tresolve(\"Hello World!\")\nend)\n```\n\nMethod 2:\n```lua\nlocal Promise = dLib.Promise\n\ntype PromiseType = typeof(Promise.PromiseType)\n\nlocal myPromise: PromiseType = Promise.new(function(resolve, reject)\n\tresolve(\"Hello World!\")\nend)\n```\n\n### Maids\n\nMethod 1:\n```lua\nlocal Maid = dLib.Maid\n\nlocal myMaid: typeof(Maid.MaidType) = Maid.new()\n```\n\nMethod 2:\n```lua\nlocal Maid = dLib.Maid\n\ntype MaidType = typeof(Maid.MaidType)\n\nlocal myMaid: MaidType = Maid.new()\n```\n\n### Cache\n\nMethod 1:\n```lua\nlocal Cache = dLib.Cache\n\nlocal myCache: typeof(Cache.CacheType) = Cache.new()\n```\n\nMethod 2:\n```lua\nlocal Cache = dLib.Cache\n\ntype CacheType = typeof(Cache.CacheType)\n\nlocal myCache: CacheType = Cache.new()\n```\n\n[Click here](https://dig1t.github.io/dlib/api/dLib) to learn how to import your first dLib module.\n","readmeTruncated":false}