I tried to run this code and got an error. Can you provide any tips to get this running?
var canvas = new (require("canvas"))(200, 200);
var context = canvas.getContext("2d");
require("canvas")
context.arc(100, 100, 100, 0, 2 * Math.PI, false);
context.fill();
canvas.toBuffer()
This code is taken directly from an example on the RunKit homepage: https://runkit.com/tolmasky/wpl-get-started-ported-to-javascript