Simple square emoji maker
Installation is done using the
npm install
command:
$ npm install andydam/EmojiMaker
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);
});