Socket
Socket
Sign inDemoInstall

template2image

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template2image

Basic Html Template To Image


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

template2Image

Description

Html template'i resim'e dönüştürmek için kullanılır

Example

import template2Image from "template2image";

const createCardImage = async () => {
    const image = await template2Image(`
    <html>
        <head>
            <style>
                #card {
                    color: white;
                    border-radius: 8px;
                    background-color: black;
                    height: 80px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            </style
        </head>
        <body>
            <div id="card">
                {{title}}
            <div>
        </body>
    </html>
`, { title: "Hello template2Image :D" }, "card");
    console.log(image);
    // Image return for base64
}

createCardImage();

template2image

Keywords

FAQs

Package last updated on 25 Sep 2022

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