Hi 

I have solved recently similar issue. 
(Want to use node module in browser to be able test them directly by Mocha)

- I want not to need compile/watch files during development.
- Use same files in same directory structure also in node.
- keep it as node-like as possible

So I used little different approach
https://github.com/farin/dualifyjs

maybe will be useful for some one, open sourced and any comments are 
welcomed.

Roman Krejcik

On Sunday, August 15, 2010 11:07:56 PM UTC+2, weepy wrote:
>
> Hi 
>
> I recently open-sourced brequire. It's a really simple way of using 
> Node SSJS commonJS code directly on the client side. It works by 
> injecting the code unchanged into a function call that has require and 
> exports as arguments. 
>
> Sounds complex, but it's really easy to use and seems to work well. 
> Hope it help some of you out - as it's certainly made my life easier. 
> More here ... http://github.com/weepy/brequire 
>
> cheers 
>
> weepy

-- 
-- 
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.


Reply via email to