0zul / canvamoji

node-canvas with support for discord and twitter based unicode emoji's.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canvamoji

node-canvas with support for discord and twitter based unicode emoji's.

Installation

$ npm install canvamoji

Quick Example

const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('canvamoji');

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

    context.fillStyle = '#7289da';
    context.font = '30px Roboto';
    await fillTextWithTwemoji(context, 'emoji 😏 or discord emoji <:specssmart:797410575952379914>', 100, 100);
}

main();

Dependencies

Licence

node-canvas-with-twemoji

Copyright to people who own the dependencies.

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

About

node-canvas with support for discord and twitter based unicode emoji's.


Languages

Language:JavaScript 100.0%