**Please do not work on this issue unless you have applied to the outreachy project.**

The [node/pdf2svg.js](https://github.com/mozilla/pdf.js/blob/master/examples/node/pdf2svg.js) example currently uses the older style of `promise.then` and callbacks. Convert it to use an `async` function and `await` style.

const name = path.basename(pdfPath, path.extname(pdfPath));
  return path.join(outputDirectory, name + "-" + pageNum + ".svg");
}
/**
 * A readable stream which offers a stream representing the serialization of a
 * given DOM element (as defined by domstubs.js).
 *
 * @param {object} options
 * @param {DOMElement} options.svgElement The element to serialize
 */
function ReadableSVGStream(options) {