Closed rdw-software closed 3 years ago
Side note: Their code is an abomination, which vastly complicates the task. Hence the relatively high complexity label.
Obsoleted; the path
library was (mostly) ported and added to evo-luvi
as a builtin extension of the standard library.
The one included in luvi/luvit appears to be outdated and incomplete. Many years have passed so that is to be expected.
The current API (and, more importantly, their test suite) should be ported and included to allow implementing a similar path resolution that could then be adapted for a simpler
import
functionality that doesn't overwrite the defaultrequire
.Important: Licensing information should be updated, too, as the code will be very similar to the original even if ported to Lua.