# node-memecaptain-api

> Rest API for MemeCaptain in NodeJS

Latest version **1.0.5** (published 2015-10-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-memecaptain-api
pnpm add node-memecaptain-api
yarn add node-memecaptain-api
bun add node-memecaptain-api
```

## 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 | 1.0.5 |
| Published | 2015-10-12 |
| First published | 2015-10-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+9 in 3 direct dependencies) |
| Install scripts | no |
| Author | khanh.nguyen |
| Maintainers | khanh-nguyen |
| Keywords | node, javascript, api, rest, meme, memcaptain |

## Links

- npm: https://www.npmjs.com/package/node-memecaptain-api
- npm.io page: https://npm.io/package/node-memecaptain-api

## Dependencies (4)

- [q](https://npm.io/package/q.md) ^1.4.1
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [request](https://npm.io/package/request.md) ^2.64.0
- [validator](https://npm.io/package/validator.md) ^4.1.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2015-10-12
- 1.0.4 — 2015-10-12
- 1.0.3 — 2015-10-12
- 1.0.2 — 2015-10-11
- 1.0.1 — 2015-10-10
- 1.0.0 — 2015-10-09

## README

# MemeCaptain API [![NPM version](https://img.shields.io/npm/v/node-memecaptain-api.svg?style=flat-square)](https://www.npmjs.com/package/node-meme-captain-api) [![NPM download count](https://img.shields.io/npm/dm/node-memecaptain-api.svg?style=flat-square)](https://www.npmjs.com/package/node-memecaptain-api)

## Usage
```
var captainApi = require('node-memecaptain-api');

// get a page of image ids
captainApi.getImagePage('search term', offsetPage=1).then(function({ids: ids, page: offsetPage}) {
    // do your own business
}, function(err) {
    // handle error
});

// get an array of `maxCount` source image ids, offset from page `offsetPage`
captainApi.getImages('search term', maxCount=20, offsetPage=1)
          .then(function({ids: ids, page: offsetPage}) {
              // make use of the images
          }, function(err) {
              // handle error
          });

// create meme given image source
captainApi.createMeme('sourceImageId', 'top text', 'bottom text')
          .then(function(memeUrl) {
              // use generated meme
          }, function(err) {
              // handle error
          });

// create source image given image url
captainApi.createImage('url', 'name')
          .then(function({id: sourceId, name: name} {
              // ...
          }, function(err) {
              // ...
          }); 

captainApi.createImage(['url1', 'url2', ...], 'name')
          .function({id: sourceId, name: name}) {
              // ...
          }, function(err) {
              // ...
          });
```

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