I've used browserify to "compile" node.js files to a single, browser-includeable JS file. It has worked remarkably well.
Also, James (@substack) is a rockstar. He's continuously made the library better and better.
Also, James (@substack) is a rockstar. He's continuously made the library better and better.
https://github.com/substack/node-browserify/issues/46
BTW https://github.com/substack/node-jadeify/ and https://github.com/substack/node-shimify/ are cool too, as are a lot of other libraries of his. I've got one commit to https://github.com/substack/js-traverse and am in the middle of writing a blog post about it. I've been meaning to check out https://github.com/substack/node-burrito which uses traverse.