evo-lua / evo-legacy

[Obsoleted Prototype] Highly experimental Lua runtime environment built on Luvi (libuv + LuaJIT)
https://evo-lua.github.io
0 stars 0 forks source link

Port NodeJS' path library to Lua #12

Closed rdw-software closed 3 years ago

rdw-software commented 3 years ago

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 default require.

Important: Licensing information should be updated, too, as the code will be very similar to the original even if ported to Lua.

rdw-software commented 3 years ago

Side note: Their code is an abomination, which vastly complicates the task. Hence the relatively high complexity label.

rdw-software commented 3 years ago

Obsoleted; the path library was (mostly) ported and added to evo-luvi as a builtin extension of the standard library.