JSPM

node-canvas-with-twemoji-and-discord-emoji

1.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94
  • Score
    100M100P100Q88123F
  • License MIT

A fork of node-canvas-with-twemoji with Discord emoji support.

Package Exports

  • node-canvas-with-twemoji-and-discord-emoji

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-canvas-with-twemoji-and-discord-emoji) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-canvas-with-twemoji-and-discord-emoji

A fork of node-canvas-with-twemoji with Discord emoji support. This is a module that is able to draw emoji on node-canvas.

Installation

$ npm install node-canvas-with-twemoji-and-discord-emoji

npm

Quick Example

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

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

    context.fillStyle = '#000000';
    context.font = '30px Arial';
    await fillTextWithTwemoji(context, 'emoji πŸ˜‰ discord emoji <πŸ†”name>', 100, 100);
}

main();

Dependencies

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