# hubot-imgapi

> A hubot script to interact with the Joyent Image API (IMGAPI) via images.joyent.com or your own URL.

Latest version **1.2.2** (published 2014-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install hubot-imgapi
pnpm add hubot-imgapi
yarn add hubot-imgapi
bun add hubot-imgapi
```

## 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.2.2 |
| Published | 2014-02-16 |
| First published | 2013-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Horrell |
| Maintainers | chorrell |
| Keywords | hubot, hubot-scripts, joyent, smartos |

## Links

- npm: https://www.npmjs.com/package/hubot-imgapi
- Repository: https://github.com/chorrell/hubot-imgapi
- Issues: https://github.com/chorrell/hubot-imgapi/issues
- npm.io page: https://npm.io/package/hubot-imgapi

## Dependencies (1)

- [coffee-script](https://npm.io/package/coffee-script.md) ~1.6

## Recent versions

- 1.2.2 (latest) — 2014-02-16
- 1.2.1 — 2013-12-12
- 1.2.0 — 2013-12-12
- 1.1.4 — 2013-12-07
- 1.1.3 — 2013-12-07
- 1.1.2 — 2013-12-06

## README

# Hubot IMGAPI

[![Build Status](https://travis-ci.org/chorrell/hubot-imgapi.png)](https://travis-ci.org/chorrell/hubot-imgapi)

A [hubot](https://github.com/github/hubot) script to interact with the Joyent Image API (IMGAPI) via images.joyent.com or your own URL. Also periodially checks the API for new images and lets you know.

## Configuration

**HUBOT_IMAGES_URL**

You can set HUBOT_IMAGES_URL to an alternate URL. If not set, the default is https://images.joyent.com/. Don't forget the trailing slash :-)

**HUBOT_IMAGES_CHECK_INTERVAL**

Set HUBOT_IMAGES_CHECK_INTERVAL (in minutes) to change how often Hubot IMGAPI will check for new images. If not set, the default is 60 minutes.
  
## Installation
1. Edit `package.json` and add `hubot-imgapi` as a dependency.
2. Add `"hubot-imgapi"` to your `external-scripts.json` file.
3. Add `"redis-brain.coffee"` to your `hubot-scripts.json` file if it's not already there -- it uses the brain for storage.
4. `npm install`
5. Reboot Hubot

## Commands

    img-get <uuid> # Shows information for the given image UUID
    img-search <word> # Shows images with a name matching <word>.
    img-newest # Shows the newest image added to the API
    img-oldest # Shows the oldest image added to the API
    img-check start # Start the periodic check for new images
    img-check stop # Stop the periodic check for new images
    
## License

Hubot IMGAPI is licensed under the [MIT][mit] license.

[mit]: http://opensource.org/licenses/mit-license.php

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