index.ts496 chars18 linesIn this code snippet, we are reading an SVG file using fs module, then converting it to a DOM instance using jsdom. We extract the SVG element from the DOM, and use convert-svg-to-png package to convert the SVG to a PNG file.
gistlibby LogSnag