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

canvabase

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvabase

An easy to use yet powerful image manipulation library.

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by37.04%
Maintainers
1
Weekly downloads
 
Created
Source

Canvabase

Canvabase is a simple and easy-to-use yet powerful image manipulation library. Canvabase is built on top of @napi-rs/canvas to ensure fast image-building speeds. Check out my other projects here

install size Downloads CodeFactor

Installation

Installing Canvabase

$ npm install canvabase

Usage

const canvabase = require("canvabase");

const welcomer = new canvabase.Welcomer()
  .setName("Dominik")
  .setTitle("Welcome!")
  //.addBackgrounds(["https://wallpapercave.com/wp/wp5128415.jpg", "https://wallpapercave.com/wp/wp11735586.jpg"])
  .addBackground("https://wallpapercave.com/wp/wp5128415.jpg")
  .setAvatar(
    "https://cdn.discordapp.com/avatars/347077478726238228/3b77f755fa8e66fd75d1e2d3fb8b1611.png?size=512",
    "rounded"
  )
  .setPosition("left")
  .setColor("#ffff");

welcomer.build().then((img) => {
  canvabase.write("./test/welcomercard.png", img);
});

Output

WelcomeCard

Features

  • Object Oriented
  • Fully documented
  • Unique Features
  • Easy to customize
  • Utilizes @napi-rs/canvas

Keywords

FAQs

Package last updated on 28 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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