You would only need node.js to run npm, in development, to publish,
install, test, update, etc. the modules.
To run your Lua program, you don't need npm nor node.js at all; the only
dependency in production would be the lua-loader module itself (83 loc).
I don't know of the old days of LuaRocks, but it doesn't seem to me that
you would have an additional require.
The default require continues to function just as you know it. It's only
extended to also be able to find npm modules.
The basic motivation could be that with npm it's astonishingly easy to
manage module dependencies, which in turn is very encouraging for keeping
your programs modular.
Also, npm installs dependencies inside your project directory by default,
so that your project is 'self contained'; it can be moved around without
breaking, while still being completely separate from its dependencies, and
different projects can all use different versions of the same package.
Lastly, it's a one-click install for Windows, Mac, Linux, and Sun.
2014-02-14 13:07 GMT+01:00 steve donovan <steve.j.dono...@gmail.com>:
> Interesting ... but node.js seems a heavy casual dependency. Plus, it
> requires Lua programs to run with an additional require (like in early
> days of LuaRocks).
>
> What is the basic motivation for this?
>
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers