canvas-mock (npm): This can be used instead of node-canvas to simulate the existance of canvas.
Keywords: canvas|node-canvas|phaser