# meme-maker

> The easiest way to create meme images :)

Latest version **2.1.2** (published 2016-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install meme-maker
pnpm add meme-maker
yarn add meme-maker
bun add meme-maker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2016-06-17 |
| First published | 2016-06-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | James Jeffery |
| Maintainers | jamesthehacker |
| Keywords | meme, maker, creator, generator |

## Links

- npm: https://www.npmjs.com/package/meme-maker
- Repository: https://github.com/jamesthehacker/meme-maker
- Homepage: https://github.com/UndergroundLabs/meme-maker#readme
- Issues: https://github.com/UndergroundLabs/meme-maker/issues
- npm.io page: https://npm.io/package/meme-maker

## Dependencies (1)

- [gm](https://npm.io/package/gm.md) ^1.22.0

## Recent versions

- 2.1.2 (latest) — 2016-06-17
- 2.0.2 — 2016-06-17
- 2.0.0 — 2016-06-17
- 1.0.3 — 2016-06-17
- 1.0.2 — 2016-06-16
- 1.0.1 — 2016-06-16

## README

Meme Maker
==========

**[Meme Maker](https://www.npmjs.com/package/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](http://i.imgur.com/2s8NYvM.png)

**You must have [graphicsmagick](http://www.graphicsmagick.org/index.html) 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

---
_Source: https://npm.io/package/meme-maker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
