For JS gurus - what is the best way to share JavaScript library code between the NodeJS and browser? The shared library will need to use $.extend()-like functionality, URL parsing and reconstructing, and logging.
How should the code be organized? What are the recommended tools to automate the process?
Thanks!