What can you do with SlimerJS?
SlimerJS allows you to execute JavaScript outside a classical web browser.
In your JavaScript you can use modules, providing access to many APIs:
Your script is also able to execute CommonJS modules,
even those written with the CoffeeScript language!
Your main script can be written with CoffeeScript as well. SlimerJS recognizes *.coffee
files.
In your Slimerjs scripts, benefit from the power of JavaScript 1.8.6, that already includes features of the future standard ECMAScript Harmony 6: iterators, generators, destructured assignement, Map and WeakMap, "let" keyword...
Since SlimerJS is executed on top of a recent Gecko (the core of Firefox), it supports all the HTML5 standards recently implemented in Firefox, including things like audio, video, WebGL etc.
In fact, SlimerJS is not really stuck to a specific version of Gecko: it can use any recent version of Firefox/XULRunner 20+.
The web page rendering in SlimerJS is strictly identical to the rendering in Firefox.
No problem to launch your web site or your web app that use HTML5 bleeding edge features!
See the download page to know the version of Gecko embedded in the current version of Slimerjs or the version of Firefox compatible with SlimerJS.
You can go on caniuse.com to see the list of HTML5 features supported by Firefox and you can use in web pages loaded by SlimerJS.
webpage.open()
!Try SlimerJS for your web projects!
APIs of SlimerJS are similar to the APIs of PhantomJS but there are a few differences in their behavior. Some options and a few features are still missing. This is a work in progress and full compatibility is the main goal for the release of SlimerJS 1.0.
However, most of scripts for PhantomJS run perfectly well right now with SlimerJS!
Contrary to PhantomJS, SlimerJS is not headless: you see windows and it needs
a graphical environment. You can use a tool like xvfb
on a Linux/MacOS system to have this headless feature
and to execute SlimerJS on Linux boxes that do not have xorg installed.