# poodle

> Transport framework

Latest version **0.4.0** (published 2015-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install poodle
pnpm add poodle
yarn add poodle
bun add poodle
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2015-07-10 |
| First published | 2014-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dan Stocker |
| Maintainers | danstocker |
| Keywords | service, transport, api, ajax, image loading |

## Links

- npm: https://www.npmjs.com/package/poodle
- Repository: https://github.com/danstocker/poodle
- Issues: https://github.com/danstocker/poodle/issues
- npm.io page: https://npm.io/package/poodle

## Dependencies (6)

- [q](https://npm.io/package/q.md) ^1.4.0
- [evan](https://npm.io/package/evan.md) ~0.8.0
- [sntls](https://npm.io/package/sntls.md) ~0.21.0
- [troop](https://npm.io/package/troop.md) ~0.9.0
- [jquery](https://npm.io/package/jquery.md) ~2.1.0
- [dessert](https://npm.io/package/dessert.md) ~0.3.2

## 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

- 0.4.0 (latest) — 2015-07-10
- 0.3.17 — 2015-05-18
- 0.3.16 — 2015-05-10
- 0.3.15 — 2015-04-06
- 0.3.14 — 2015-03-23
- 0.3.13 — 2015-03-10
- 0.3.12 — 2015-03-01
- 0.3.11 — 2015-02-18
- 0.3.10 — 2015-02-06
- 0.3.9 — 2015-01-21
- 0.3.7 — 2015-01-14
- 0.3.6 — 2014-12-17
- 0.3.5 — 2014-12-11
- 0.3.4 — 2014-12-04
- 0.3.3 — 2014-11-07
- … 11 more at https://npm.io/package/poodle/versions

## README

Poodle
======

*Transport framework*

Provides an API for managing service calls and static image loading that is a) evented (based on [evan](https://github.com/danstocker/evan)) and b) is consistent with the OOP principles laid down in [troop](https://github.com/production-minds/troop).

[Wiki](https://github.com/danstocker/poodle/wiki)

[Reference](http://danstocker.github.io/poodle)

Examples
--------

[jsFiddle](http://jsfiddle.net/danstocker/gua4vLdn/)

POSTing to an endpoint:

    '/endpoint/path'.toEndpoint().toRequest()
        .setHttpMethod('POST')
        .setParam('param', 'value')
        .toService()
            .callService();

Capturing the service's successful return:

    '/endpoint/path'.toEndpoint()
        .subscribeTo(poodle.Service.EVENT_SERVICE_SUCCESS, function (event) {
            console.log("service returned with response", event.responseNode);
        })

Loading a static image:

    '/images/foo.jpg'.toImageUrl()
        .loadImage();

Capturing the successful loading of the image into an image element:

    '/images/foo.jpg'.toImageUrl()
        .subscribeTo(poodle.Image.EVENT_IMAGE_LOAD_SUCCESS, function (event) {
            console.log("image loaded into", event.imageElement);
        });

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