/EmojiMaker

Simple square emoji maker

Primary LanguageHTML

EmojiMaker

Simple square emoji maker

Table of Contents

  1. Installation
  2. Usage

Installation

Installation is done using the npm install command:

$ npm install andydam/EmojiMaker

Usage

The method .createEmoji returns a Promise that resolves with an object containing two buffers, red and blue.

const fs = require('fs');
const EmojiMaker = require('andydam/EmojiMaker');

maker = new EmojiMaker();

maker.createEmoji('SELL\nSELL\nSELL').then(({red, blue}) => {
  fs.writeFileSync('red.png', red);
  fs.writeFileSync('blue.png', blue);
});