certificate-create
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,4 +14,3 @@ import fs from "fs"; | ||
ExportImage(imagePath = "DMK.png",name = "Cert.png") { | ||
ExportImage(imagePath = "DMK.png", name = "Cert.png") { | ||
canvas.loadImage(imagePath).then((image) => { | ||
@@ -30,3 +29,3 @@ this.context.drawImage(image, 0, 0, this.width, this.height); | ||
this.buffer = this.canvas.toBuffer("image/png"); | ||
fs.writeFileSync(name, this.buffer); | ||
fs.writeFileSync(name, this.buffer); | ||
console.log("export image : " + name); | ||
@@ -49,3 +48,2 @@ return this.buffer; | ||
export default CCreate; | ||
export default { CCreate }; |
{ | ||
"name": "certificate-create", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This script will help you to create a Certificate", | ||
"main": "server.js", | ||
"main": "index.js", | ||
"type": "module", | ||
@@ -7,0 +7,0 @@ "scripts": { |
2462390