JSPM

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

Draw text with Twemoji on node-canvas

Package Exports

  • node-canvas-with-twemoji

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) 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

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(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