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.
Installation
$ npm install node-canvas-with-twemoji-and-discord-emoji
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, '😉', 100, 100);
}
main();
Dependencies
Licence
node-canvas-with-twemoji
Copyright (c) 2020 cagpie cagpie@gmail.com
Code licensed under the MIT License: http://opensource.org/licenses/MIT