Interesting... but.... A key property of a require is the "isolation" of its product, something like namespaces in other languages/technologies.
So myrequire.abs is clearly different from yourrequire.abs Paraphrasing David Hilbert (about Cantor) "No one shall expel us from the paradise that require(...) has created for us" http://www.brainyquote.com/quotes/authors/d/david_hilbert.html On Fri, Jun 1, 2012 at 2:26 PM, Seiji Sam Lee <seijisam...@gmail.com> wrote: > Due the great expectation around node.js, libs and functions grow up > without control. > > Nowadays we have a lot of "requires" and we need to memorize a lot of > names (fs, path, vm, ...); with time, we'll spend more and more time > reading documentation :-( > > My proposal is incorporate the mechanism of "register" the module, for > example, phpjs library could register the function "isset" into "utils", > and "abs" function into "math" > > So we could have libraries well sorted !! > > > El 01/06/12 15:17, Alan Hoffmeister escribió: > >> Hello there! >> >> I had just ported php.js (http://phpjs.org) for Node.js. >> My motivation was to available new functions that could help programmers >> to accomplish simple tasks and yup, I came from PHP and I was really >> missing some basic functions :) >> >> A list of functions is available at http://phpjs.org, install guide and >> usage, here: >> https://github.com/cranic/**node-phpjs<https://github.com/cranic/node-phpjs> >> . >> >> Have an idea? Shout it out! :) >> >> -- >> Att, >> Alan Hoffmeister >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-** >> Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines> >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to nodejs@googlegroups.com >> To unsubscribe from this group, send email to >> nodejs+unsubscribe@**googlegroups.com<nodejs%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-** > Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines> > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscribe@**googlegroups.com<nodejs%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en