The simple strategy I'm using is at my code: https://github.com/ajlopez/PLangRe
Example https://github.com/ajlopez/PLangRe/blob/master/lib/checker.js Each require is launched by an if if (typeof tokenizer === 'undefined') var tokenizer = require('./tokenizer'); The definition of module inside the execution of a function var checker = (function() { var whitespace = 1; var newline = 2; var word = 3; ... There is a check for exports. module if (typeof module !== 'undefined' && module && module.exports) module.exports = checker; I have a prologue and epilogue code, that it is used by build.cmd (no multiplatform yet) But the resulting .js https://github.com/ajlopez/PLangRe/blob/master/js/plangre.js can be consumed from browser Angel "Java" Lopez @ajlopez On Fri, Jul 19, 2013 at 11:28 AM, Peter Rust <[email protected]>wrote: > > but the Underscore comments / annotations still incorrectly state that > it's `global` on the server > > ... I still need to issue a pull request > > FWIW, this has been corrected now ( > https://github.com/jashkenas/underscore/pull/1211) > > -- > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
