Home

Awesome

luaimport - Easy imports/packages for Lua

luaimport presents (what I think is) an interesting method for handling the creation of packages/modules in Lua.

To use luaimport, follow these steps:

Example Usage

-- testfile.lua
return {
   test = true,
   word = 'hi'
}
-- testlib.lua
require 'luaimport'
local testlib = Package 'testlib'
return testlib
-- init.lua
require 'luaimport'
lib = Package {
    'libfile1',
    'libfile2',
    'libfile3'
}