PaulBernier / castl

JavaScript to Lua compiler with runtime library.
GNU Lesser General Public License v3.0
372 stars 33 forks source link

Emulate node's require #15

Open daurnimator opened 7 years ago

daurnimator commented 7 years ago

It would be nice to be able to have lua load node.js modules on the fly. i.e. runtime:require("../foo.js").

daurnimator commented 7 years ago

Might be able to work from the actual node implementation? https://github.com/nodejs/node/blob/master/lib/module.js