What can you do with SlimerJS?
SlimerJS allows you to execute a javascript script outside a classical web browser.
In your javascript script, you can use some modules providing many APIs:
Your script is also being able to execute CommonJS modules,
even those written with the Coffee-Script language!
Your main script can be written with Coffee-script as well. SlimerJS recognize *.coffee
files.
All of these features are executed on top of the core of Firefox. and are already implemented in SlimerJS.
These APIs are similar to the APIs of Phantomjs but there are some few differences in their behaviors. Some options and few features are still missing. This is a work in progress and a full compatibility is the main goal for the release of SlimerJS 1.0.
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 have not Xorg installed.
But...
SlimerJS is not only a PhantomJS clone, it contains also additional features right now:
webpage.open()
!Try SlimerJS for your web projects!