views:

97

answers:

2

Hi,

is there any Javascript OOP library to easily work with classes, inherence and the like in a more class-based way to avoid prototypical OOP that works with JS both on the client (browser) and on the server (in my case Node.js, but generally that uses javascript core functions, so that can be used no matter the interpreter)?

Thanks.

+2  A: 

The Rightjs library has a server build you can download.

I think it has Node.js specifically in mind.

From the download page:

RightJS is also available as a server-side library. In this case it contains only the native JavaScript unit extensions and the Class, Observer, Options units along with all the non-DOM utility functions from the Util module.

Our server-side build follows the CommonJS principles and is ready for use with the node.js framework.

patrick dw
A: 

A couple days ago, Dirk Ginader, frontend enginner at Yahoo!, told me that the latest release of YUI3 works flawlessly with node.js.

I haven't verified that myself (not a big fan of YUI) but Dirk is working at the Yahoo! mail application whose next release will be (partially) based on node.js. That's good enough for me to believe that he knew what he was talking about :-)

n3rd