Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

ccinv/larpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

larpr - Lua ARchive support

Not in maintain anymore

larpr is a jar-like archive support,which allows you to pack multi lua source or bytecode into one zipped file.

Building

larpr use CMake to build.It is compatible with lua 5.x and luajit 2.x.

You can use -DEMINIZ=ON in CMake to switch larpr to use external miniz.

Usage

require("larpr")

After requiring, lua's package loader will be updated to find lars.For example,to find foo.luac in test.lar,type following code.

require("test.foo")

Functions

  • larpr.cachelar([name(string)]) -> boolean

Cache lar that matches larpr.ppath which is similar to lua's package.path

  • larpr.requiref([name(string)]) -> function

Return a loaded function by name.If the lar which contains the module is not cached, it will cache it first.

License

MIT License

About

[Deprecated]Lua ARhieve

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published