prototype4node is an attempt to bring the power and simplicity of the prototypejs library, to NodeJS.
My intention is to provide equal results with the browser version of Prototypejs, even if the code isn't exactly the same.
<<<<<<< HEAD prototype4node is a npm package, installing is as simple as listing it as a dependency in your package.json file. You should also be able to isntall it directly from npm via,
npm install prototype4node
npm install -g prototype4node
Partially converted parts of existing library. I have also written some unit tests using the Mocha testing platform. The tests are not as comprehensive as the unit tests prototype provides, but the goal isn't to rewrite all of prototypes tests, just for major features. I have also identified and resolved an issue that was preventing me from extending the Hash object in another project.
Open up the file tests/index.html to run all tests. All libraries (mocha, prototype, assert) are contained within the tests/lib directory.
npm install -g mocha
mocha ./tests -R spec