canvas-with-twemoji
1.0.0 • Public • Published
canvas-with-twemoji
Installation
$ npm install canvas-with-twemoji
npm
Usage Example
const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('canvas-with-twemoji');
async function main () {
const canvas = createCanvas(200, 200);
const context = canvas.getContext('2d');
context.fillStyle = '#000000';
context.font = '30px Arial';
await fillTextWithTwemoji(context, 'emoji 🙂', 100, 100);
}
main();
Package Sidebar
Install
npm i canvas-with-twemoji
Weekly Downloads