Existe uma maneira de executar JavaScript sem um navegador, como um shell ou script de lote?
O que você está procurando são shells JavaScript .
A JavaScript shell allows you to quickly test snippets of JavaScript code without having to reload a web page. They are extremely useful for developing and debugging code.
Shells JavaScript autônomos
The following JavaScript shells are stand-alone environments, like perl or python.
- Node.js - Node.js is a platform for easily building fast, scalable network applications.
- JSDB - A standalone JavaScript shell, with compiled binaries for Windows, Mac, and Linux.
- JavaLikeScript - A standalone, extensible JavaScript shell including both native and JavaScript libraries.
- GLUEscript - A standalone JavaScript shell for writing cross-platform JavaScript applications. It can use wxWidgets for GUI apps, and was formerly called wxJavaScript.
- jspl - A standalone JavaScript shell enhanced by Perl. Can use perl modules directly from JavaScript: DBI for database integration, GTK2 for GUI apps, POSIX for system programming, etc. The best of CPAN now for JavaScript programmers.
- ShellJS - Portable Unix shell commands for Node.js
- Windows Script Host - Microsoft® Windows® Script Host (WSH) is a language-independent scripting host for Windows Script.
Fonte shells JavaScript