New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

meme-maker

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meme-maker

The easiest way to create meme images :)

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by35.73%
Maintainers
1
Weekly downloads
 
Created
Source

Meme Maker

Meme Maker is a package that allows you to quickly, and easily, generate memes such as the one below:

Example of meme created with Meme Maker

You must have graphicsmagick installed for this package to work.

Install

npm install meme-maker --save

Usage

Using Meme Maker is easy!

let memeMaker = require('meme-maker')

let options = {
  image: 'spiderman.png',         // Required
  outfile: 'spiderman-meme.png',  // Required
  topText: 'TODAY IM',            // Required
  bottomText: 'AN ASS',           // Optional
  font: '/path/to/font.ttf',      // Optional
  fontSize: 50,                   // Optional
  fontFill: '#FFF',               // Optional
  textPos: 'center',              // Optional
  strokeColor: '#000',            // Optional
  strokeWeight: 2                 // Optional
}

memeMaker(options, function(err) {
  if(e) throw new Error(err)
  console.log('Image saved: ' + options.outfile)
});

memeMaker accepts an options object as it's first paramater and a callback function as its second paramater. Upon success an image is created at the location specified in the options.outfile property.

Default Values

The following options have default values set:

  • outfile: Randomly generated filename
  • font: impact.ttf
  • fontSize: 100
  • fontFill: #FFF
  • textPos: center
  • strokeColor: #000
  • strokeWeight: 2

Keywords

FAQs

Package last updated on 17 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc