Socket
Socket
Sign inDemoInstall

node-canvas-with-twemoji

Package Overview
Dependencies
81
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-canvas-with-twemoji

Draw text with Twemoji on node-canvas


Version published
Weekly downloads
10
decreased by-65.52%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

node-canvas-with-twemoji

This is a module that is able to draw emoji on node-canvas.

Installation

$ npm install node-canvas-with-twemoji

npm

Quick Example

const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('node-canvas-with-twemoji');

async function main () {
    const canvas = createCanvas(230, 200);
    const context = canvas.getContext('2d');

    context.fillStyle = '#000000';
    context.font = '30px Arial';
    await fillTextWithTwemoji(context, 'canvas😉emoji', 10, 100);
}

main();

image

Dependencies

  • node-canvas GitHub
  • twemoji-parser GitHub

Licence

node-canvas-with-twemoji

Copyright (c) 2020-2021 cagpie / Shun Kobayashi cagpie@gmail.com

Code licensed under the MIT License: http://opensource.org/licenses/MIT

Keywords

FAQs

Last updated on 05 Jan 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc