php.js is an open source project that brings high-level PHP functions to low-level JavaScript platforms such as web browsers, browser extensions ( Mozilla/Firefox, Chrome ), AIR, and SSJS engines like V8 (node.js, v8cgi ), Rhino, and SpiderMonkey ( CouchDB )
If you want to perform high-level operations on these platforms, you probably need to write JS that combines its lower-level functions and build it up until you have something useful like:strip_tags(), strtotime(), number_format(), wordwrap().
For an example of a user TeXworks implementation of this see helper_PhpJs.mod
JS.Class
JS.Class is a set of tools designed to make it easy to build robust object-oriented programs in JavaScript. It’s based on Ruby , and gives you access to Ruby’s object, module and class systems, some of its reflection and metaprogramming facilities, and a few of the packages from its standard library. It also provides a powerful package manager to help load your applications as efficiently as possible.
Created with the Personal Edition of HelpNDoc: Full featured Help generator