Skip to content

jahaanjain/meme-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview:

This NPM module is for developers to create memes using an image URL, and save it into their specified directory.

Example meme: Meme

Example code and usage: This module depends on the "jimp" NPM module

var memeCreator = require('meme-creator');
// var Jimp = require('jimp');

let options = {
    imageURL: 'https://puu.sh/FFRao/b67dde72b7.jpg', // URL to image
    topText: 'Daddy, what are clouds made of?', // top text of meme
    bottomText: 'Linux servers, mostly', // bottom text of meme
    directory: './memes/', // where to save memes
    fileName: 'my_meme', // change to 'random' for a random file name
}

memeCreator(options, function(res, error) {
    if(error) throw new Error(error)
    console.log('You can view your meme by going to ' + res.fileName);
});

About

Create memes from image URLs!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published