I added a new module:action(path, action) api that resolves a path relative to the calling module. If it's a real file, the path is passed to action, if it's a virtual file (inside a zip bundle), the file is written to a temporary location, action is called with the temp path, and the temp file is unlinked.
This is useful for using ffi.load when the .so/.dll/.dylib may or may not be on the filesystem or in a luvi bundle. Also this obsoleted my ffi-loader module so there is a new flag in lit package metadata where you can mark a package as obsolete. https://github.com/creationix/lit-ffi-loader/blob/master/ffi-loader.lua#L4 When this flag is set, it prevents this package from showing up in lit search results. Search all you want, it's not there https://luvit.io/lit.html#author:creationix But you can still see if there are any packages that depend on it: https://luvit.io/lit.html#depends:creationix/ffi-loader I updated my ffi modules to use the new module:action, you can see the instructions I wrote for the sqlite module at https://github.com/nihildeb/lit-sqlite3/issues/1 -- You received this message because you are subscribed to the Google Groups "luvit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
