1
0
Go to file
takunomi-build-bot 1192910246
Some checks failed
LÖVE/Lua Library / Lua-Testing (push) Failing after 9s
LÖVE/Lua Library / Static-Analysis (push) Failing after 3s
🤖 Bumped version to 1.4.2
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-04-17 17:05:14 +02:00
.gitea/workflows 🤖 Repository layout updated to latest version 2025-04-17 16:45:49 +02:00
.gitignore 🤖 Repository layout updated to latest version 2025-04-17 17:04:38 +02:00
.luacheckrc 🤖 Repository layout updated to latest version 2025-04-17 16:45:49 +02:00
init.lua 🤖 Repository layout updated to latest version 2025-04-17 16:45:49 +02:00
LICENSE 🤖 Repository layout updated to latest version 2025-04-17 16:45:49 +02:00
README.md 🤖 Repository layout updated to latest version 2025-04-17 16:45:49 +02:00
suggest-require.lua 🤖 Bumped version to 1.4.2 2025-04-17 17:05:14 +02:00

Suggest-Require

This is a small library to discover which modules are importable using require.

It's useful for seeing which modules your Lua environment can access. It's intended usage is in an auto-complete system for Lua.

Known to work with Lua 5.1 and LuaJIT, on Linux.

Usage

Standalone: The library be called as a script luajit suggest-require.lua to print available packages in the Lua environment.

Library: Import through require. A single function is be returned. Calling this function will return the available packages, as a list of strings.

Example

Replicating the script functionality of this library is as simple as:

local package_names = require 'suggest-require' () for , name in ipairs(packagenames) do

print('- '..name)

end

Changelog

  • 1.4.0: Updated repository (17. April 2025)

  • 1.3.0: Usage and example (6. July 2020)

  • 1.2.0: Unknown change (9. January 2018)

  • 1.1.0: Unknown change (Unknown)

  • 1.0.0: Initial version (September 2017)

  • Author: Jon Michael Aanes (jonjmaa@gmail.com)

Dependencies

This project requires PUC Lua 5.1 or LuaJIT. Newer versions of PUC Lua are not supported.

This project does not have any library requirements 😎

Contributing

Feel free to submit pull requests. Please follow the Code Conventions when doing so.

License

Copyright (c) 2017-2025 Jon Michael Aanes

All rights reserved.