canvabase
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

/canvabase/

    Package Sidebar

    Install

    npm i canvabase

    Weekly Downloads

    234

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    2.31 MB

    Total Files

    157

    Last publish

    Collaborators

    • dominikk