Getting started
FrankJS usage is simple, you just need to run
$ node frankjs google.com and it will generate one html report in
report-results folder.
Behind the scenes FrankJS is using one PhantomJS script to get all the page information and after that it creates your report using Jade Template engine.
Example:
> node frankjs google.com
Report created with success:
result-default-1386976982564.html
Result file:
Results for http://google.com
Started at 12/13/2013 11:23:04
Page loaded in 2219 ms
DOM ready in 24 ms
Window load in 1311 ms
201 DOM elements
Page errors....
Console messages....
Resources...
Cookies...
Options
FrankJS supports custom created reports and also custom scripts to run in PhantomJS, you can override options using extra parameters in command line (for more information: node frankjs -h) or you can edit FrankJS default options.
Default options are located in
default.json in config-files folder, you can override any default option or create your custom config file for a specific report. To load your json config file use
-ff=FILENAME option (must be in config-files folder). Any attribute in json config file will be mapped in frankArgs object, just in case you want to add any awesome new functionality.