Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zxcraxs-canvas

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zxcraxs-canvas - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "zxcraxs-canvas",
"version": "1.0.1",
"version": "1.0.2",
"description": "canvas-canvas",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,2 +10,3 @@ const { createCanvas, loadImage, registerFont } = require('canvas');

this.avatar = "https://i.imgur.com/cNuEFiQ.jpg";
this.template = "https://i.ibb.co/6wMZWH9/card.png";

@@ -39,4 +40,2 @@ }

let template = await loadImage('../assets/template/card.jpg');
const profile = await Canvas.loadImage(this.avatar);

@@ -48,3 +47,3 @@

// Draw Template
ctx.drawImage(template, 0, 0, canvas.width, canvas.height);
ctx.drawImage(this.template, 0, 0, canvas.width, canvas.height);

@@ -51,0 +50,0 @@ // Card Title

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc