1.0.1 • Published 1 year ago
imagecreator v1.0.1
USAGE
addStrings
This function accepts an SVG template file in which the text will be replaced, and returns a PNG buffer.
const { addStrings } = require("imagecreator");
const fs = require("node:fs/promises");
addStrings("path_to_svg", "test1", "test2", "test3").then(async buf => {
await fs.writeFile("path_to_png", buf);
}).catch(err => {
console.error(err);
});