News for hackers. Stuff that matters.
Re:Reusing require.js modules in Node.js with AMDrequire by alistairjcbrown on Wednesday May 21, 2014 @11:28AM (#7778744)
How does this differ from the requirejs module for Node?

https://www.npmjs.org/package/requirejs

Re:Reusing require.js modules in Node.js with AMDrequire by spencera on Wednesday May 21, 2014 @01:27PM (#7779475)
Looks like it offers a subset of the features by allowing you to use the same require() function for both amd and commonjs modules.

https://gist.github.com/spenceralger/946ddc6c55d997d4a028

Re:Reusing require.js modules in Node.js with AMDrequire by alistairjcbrown on Thursday May 22, 2014 @07:22AM (#7783229)
Ah, thank you - I misunderstood the crucial piece "load AMD modules like ... they were native Node modules".

I guess I can see the value in this, if you're retrofitting a new module in the AMD style to an existing node application which does not use that style.

Re:Reusing require.js modules in Node.js with AMDrequire by wildpeaks on Friday May 23, 2014 @03:05PM (#7790817)
The requirejs module has both the server-side loading modules and the optimizer that compiles to a single file whereas this new one only does the server-side loading of modules as far as I can tell.