Would be very interested to hear what others recommend as a good
implementation of JavaScript to use as a cross-platform scripting
language. Would like to port some of my batch, bash and Perl scripts
over to one language, JavaScript. I've been checking through the
JavaScript implementations mentioned at the CommonJs wiki and some
other implementations as well. Am trying to find something that works
equally well on both Windows and Linux and that has much of the same
functionality as JavaScript in a browser (including basic DOM parsing
for XML files) plus the ability to read/write files and execute
applications and set environment variables. Would be very curious to
hear what implementations other developers are using for JavaScript
scripting. Thanks.
We are using Mozilla's SpiderMonkey engine in the GPSEE environment to solve this exact set of problems in a production environment.
We don't currently support Windows, but would be happy to give porting advice.
Warning, Mozilla current supports E4X (ECMAScript 4 XML) which gives us an XML parser etc, but I have a feeling they will drop that within the next year. We will probably embed libxml2 and throw on a light subset of DOM to manipulate it in the future.
Wes
On 27 February 2012 07:53, LM <lme...@gmail.com> wrote:
> Would be very interested to hear what others recommend as a good > implementation of JavaScript to use as a cross-platform scripting > language. Would like to port some of my batch, bash and Perl scripts > over to one language, JavaScript. I've been checking through the > JavaScript implementations mentioned at the CommonJs wiki and some > other implementations as well. Am trying to find something that works > equally well on both Windows and Linux and that has much of the same > functionality as JavaScript in a browser (including basic DOM parsing > for XML files) plus the ability to read/write files and execute > applications and set environment variables. Would be very curious to > hear what implementations other developers are using for JavaScript > scripting. Thanks.
> -- > You received this message because you are subscribed to the Google Groups > "CommonJS" group. > To post to this group, send email to commonjs@googlegroups.com. > To unsubscribe from this group, send email to > commonjs+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/commonjs?hl=en.
-- Wesley W. Garland Director, Product Development PageMail, Inc. +1 613 542 2787 x 102
I you have experience with Perl, I recommend you take a look to JSPL ( http://jspl.msg.mx), a cross-bindings between Mozilla's SpiderMonkey VM and Perl. With it, a JavaScript developer can use most of CPAN to tailor the JS environment to his needs. Both Linux and Windows are supported.
> I you have experience with Perl, I recommend you take a look to JSPL ( > http://jspl.msg.mx), a cross-bindings between Mozilla's SpiderMonkey VM > and Perl. > With it, a JavaScript developer can use most of CPAN to tailor the JS > environment to his needs. > Both Linux and Windows are supported.
> Salvador.
> -- > You received this message because you are subscribed to the Google Groups > "CommonJS" group. > To post to this group, send email to commonjs@googlegroups.com. > To unsubscribe from this group, send email to > commonjs+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/commonjs?hl=en.
On Mon, Feb 27, 2012 at 7:53 AM, LM <lme...@gmail.com> wrote: > Would be very interested to hear what others recommend as a good > implementation of JavaScript to use as a cross-platform scripting > language. Would like to port some of my batch, bash and Perl scripts > over to one language, JavaScript. I've been checking through the > JavaScript implementations mentioned at the CommonJs wiki and some > other implementations as well. Am trying to find something that works > equally well on both Windows and Linux and that has much of the same > functionality as JavaScript in a browser (including basic DOM parsing > for XML files) plus the ability to read/write files and execute > applications and set environment variables. Would be very curious to > hear what implementations other developers are using for JavaScript > scripting. Thanks.
> -- > You received this message because you are subscribed to the Google Groups "CommonJS" group. > To post to this group, send email to commonjs@googlegroups.com. > To unsubscribe from this group, send email to commonjs+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/commonjs?hl=en.
Correction, jsdom is currently only available on node.js and currently works best with an additional binary addon. dom.js ( https://github.com/andreasgal/dom.js/) works on node and spidermonkey.
> Would be very interested to hear what others recommend as a good > implementation of JavaScript to use as a cross-platform scripting > language. Would like to port some of my batch, bash and Perl scripts > over to one language, JavaScript. I've been checking through the > JavaScript implementations mentioned at the CommonJs wiki and some > other implementations as well. Am trying to find something that works > equally well on both Windows and Linux and that has much of the same > functionality as JavaScript in a browser (including basic DOM parsing > for XML files) plus the ability to read/write files and execute > applications and set environment variables. Would be very curious to > hear what implementations other developers are using for JavaScript > scripting. Thanks.
> -- > You received this message because you are subscribed to the Google Groups "CommonJS" group. > To post to this group, send email to commonjs@googlegroups.com. > To unsubscribe from this group, send email to commonjs+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/commonjs?hl=en.