{"id":"flipbook-labs/module-loader","name":"module-loader","scope":"flipbook-labs","platform":"roblox","description":"Module loader class that bypasses Roblox's require cache","version":"0.12.0","latest":"0.12.0","versions":["0.6.1","0.6.2","0.7.0","0.8.0","0.9.0","0.10.0","0.10.1","0.10.2","0.11.0","0.12.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"jsdotlua/jest":{"version":"^3.10.0","alias":"Jest"},"jsdotlua/jest-globals":{"version":"^3.10.0","alias":"JestGlobals"}},"integrity":"dbd2ab0b4f5339f7bec841a0137e551824673da123079453342c26231cd19ee4","likes":0,"downloads":0,"install":"forest install flipbook-labs/module-loader","url":"https://forest.dev/p/roblox/flipbook-labs/module-loader","files":"https://api.forest.dev/ai/package/roblox/flipbook-labs/module-loader/files","readme":"# ModuleLoader\n\n[![CI](https://github.com/flipbook-labs/module-loader/actions/workflows/ci.yml/badge.svg)](https://github.com/flipbook-labs/module-loader/actions/workflows/ci.yml)\n[![Docs](https://img.shields.io/badge/docs-website-brightgreen)](https://flipbook-labs.github.io/module-loader)\n\nModule loader class that bypasses Roblox's require cache.\n\nThis class aims to solve a common problem where code needs to be run in Studio, but once a change is made to an already required module the whole place must be reloaded for the cache to be reset. With this class, the cache is ignored when requiring a module so you are able to load a module, make changes, and load it again without reloading.\n\n## Usage\n\n```lua\nlocal ModuleLoader = require(ReplicatedStorage.Packages.ModuleLoader)\n\nlocal loader = ModuleLoader.new()\nloader:require(ReplicatedStorage.ModuleScript)\n```\n\n## Installation\n\nInstalling the package is quick and easy whether you use a package manager like [Wally](https://github.com/UpliftGames/wally) or work directly in Studio.\n\n### Wally (Recommended)\n\nAdd the following to your `wally.toml` and run `wally install` to download the package.\n\n```toml\n[dependencies]\nModuleLoader = \"flipbook-labs/module-loader@0.6.1\"\n```\n\nMake sure the resulting `Packages` folder is synced into your experience using a tool like [Rojo](https://github.com/rojo-rbx/rojo/).\n\n### Roblox Studio\n\n* Download a copy of the rbxm from the [releases page](https://github.com/flipbook-labs/module-loader/releases/latest) under the Assets section.\n* Drag and drop the file into Roblox Studio to add it to your experience.\n## Documentation\n\nYou can find the documentation [here](https://flipbook-labs.github.io/module-loader).\n\n## Credits\n\nParts of this class were taken verbatim from [OrbitalOwen/roblox-testservice-watcher](https://github.com/OrbitalOwen/roblox-testservice-watcher), and other parts were rewritten to allow the module loading code to be abstracted into a new package.\n\n## Contributing\n\nSee the [contributing guide](https://flipbook-labs.github.io/module-loader/docs/contributing).\n\n## License\n\n[MIT License](LICENSE)","readmeTruncated":false}