xvfb

Easily start and stop an X Virtual Frame Buffer from your node apps.

npm install xvfb
1 downloads in the last day
3 downloads in the last week
21 downloads in the last month

node-xvfb: easily start and stop an X Virtual Frame Buffer from your node apps.

Usage

var Xvfb = require('xvfb');
var xvfb = new Xvfb();
xvfb.start();

// code that uses the virtual frame buffer here

xvfb.stop();

The Xvfb constructor takes two options:

  • displayNum - the X display to use, defaults to the lowest unused display number >= 99 if reuse is false or 99 if reuse is true.
  • reuse - whether to reuse an existing Xvfb instance if it already exists on the X display referenced by displayNum

Thanks to

Both of which served as inspiration for this package.

npm loves you