1.0.1 • Published 1 year ago

imagecreator v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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);
});
1.0.1

1 year ago

1.0.0

1 year ago