Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toolbuddy/memegen

(๑•̀ㅂ•́)و✧ A meme generator ! (๑•̀ㅂ•́)و✧
https://github.com/toolbuddy/memegen

cli-tools generator meme

Last synced: about 1 month ago
JSON representation

(๑•̀ㅂ•́)و✧ A meme generator ! (๑•̀ㅂ•́)و✧

Awesome Lists containing this project

README

        

# MemeGen

[![npm version](https://badge.fury.io/js/memegen.svg)](https://badge.fury.io/js/memegen)
[![npm downloads](https://img.shields.io/npm/dm/memegen.svg)](https://img.shields.io/npm/dm/memegen.svg)

A meme generator.

![](./output/showcase.png)

# How to use

## Install

* Install globally

```bash
# switch to root
$ sudo su
# and then install with option "--unsafe-perm"
$ npm install memegen --unsafe-perm --verbose memegen -g
# use
$ memegen --help
```

* Or use it locally

```bash
# install
$ npm install memegen --save
# use (under same directory you use install command)
$ node node_modules/memegen/main.js --help
```

*

---

## Usage

### Static Template (For Drake meme)
* Example:

```bash
memegen -1 upper.png -2 lower.png -o output_dir -f output_filename -t png
```

* See some example!
* Bang!
![](output/bang.png)

---

### Dynamic Configuration
* [Config file format](https://github.com/toolbuddy/memegen/wiki/Configuration)

* Example:

```bash
memegen -c .json -f -t png -o
```

* See some example, which generate from specific configuration file!
* Cereal guy meme
* [configure file](config_cereal.json)
* `memegen -c config_cereal.json -f use_config_cereal -t png -o output`
![](output/use_config_cereal.png)
* Peter parker meme
* [configure file](config.json)
* `memegen -c config.json -f use_config -t png -o output`
![](output/use_config.png)

* or just using `--help`:

```bash
memegen --help
```