# memegen-techstack

> Generate memes either randomly or by query.

Latest version **2.0.2** (published 2023-06-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install memegen-techstack
pnpm add memegen-techstack
yarn add memegen-techstack
bun add memegen-techstack
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-06-14 |
| First published | 2023-06-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 1 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Abel Purnwasy |
| Maintainers | r44m5aa, sxm_abel |
| Keywords | meme, generator, discord, nodejs, memegenerator, memegen, techstack, TechStack, queryMeme, redditMemes, reddit, giphyMemes, giphy |

## Links

- npm: https://www.npmjs.com/package/memegen-techstack
- Repository: https://github.com/SxMAbel/memegen
- Homepage: https://github.com/SxMAbel/memegen#readme
- Issues: https://github.com/SxMAbel/memegen/issues
- npm.io page: https://npm.io/package/memegen-techstack

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2023-06-14
- 2.0.1 — 2023-06-14
- 2.0.0 — 2023-06-14
- 1.0.3-dev — 2023-06-06
- 1.0.2-dev — 2023-06-06
- 1.0.1-dev — 2023-06-06
- 1.0.0-dev — 2023-06-06

## README

## How To Use memegen-techstack

## Typescript

```ts
import { MemeGen } from "memegen-techstack";
```

## Javascript

```js
const { MemeGen } = require("memegen-techstack");
```

## Get Random Memes

**Example**

```js
const memeGen = new MemeGen();
const meme = await memeGen.random.fetch();
```

> **`meme` will return:**

- HDPreview `- string`
- Author `- string`
- NSFW `- boolean`
- Preview `- array`
- Spoiler `- boolean`
- Title `- string`
- URL `- string`

> **Each time you use `.random.fetch()` you will get a different meme.**

## Search For A Meme From Your Input Phrase

## Using Reddit API

**Example**

```js
const memeGen = new MemeGen();
const meme = await memeGen.reddit.fetch({ query: "", sort: "" });
```

> **`meme` will return `.memes` either an array or a string if no memes found for the search input.**

**`.memes` array is consists of:**

- title `- string`
- url `- string`

## Using Giphy API

**Example**

```js
const memeGen = new MemeGen();
const meme = await memeGen.giphy.fetch({
  giphyApiKey: "apikey",
  query: "",
  limit: 1,
});
```

> **`meme` will return `.memes` if limit greater than 1. `.title` & `.imageURL` will return null.**

> **`meme` will return `.title` & `.imageURL` if limit is 1. `.memes` will return null.**

NOTE: **The `.memes` will return and array with object(s):**

- title `- string`
- imageURL `- string`

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