# restler-promise

> A restler wrapper for the Promises/A+ implementation of your choice

Latest version **0.0.10** (published 2018-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install restler-promise
pnpm add restler-promise
yarn add restler-promise
bun add restler-promise
```

## 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.0.10 |
| Published | 2018-08-16 |
| First published | 2016-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marcus Wittig |
| Maintainers | mwittig |
| Keywords | restler, rest, promise |

## Links

- npm: https://www.npmjs.com/package/restler-promise
- Repository: https://github.com/mwittig/restler-promise
- Homepage: https://github.com/mwittig/restler-promise#readme
- Issues: https://github.com/mwittig/restler-promise/issues
- npm.io page: https://npm.io/package/restler-promise

## Dependencies (1)

- [restler-base](https://npm.io/package/restler-base.md) ^3.4.6

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.10 (latest) — 2018-08-16
- 0.0.9 — 2018-02-01
- 0.0.8 — 2018-01-31
- 0.0.7 — 2017-12-10
- 0.0.6 — 2017-02-09
- 0.0.5 — 2016-10-20
- 0.0.4 — 2016-10-20
- 0.0.3 — 2016-10-10
- 0.0.2 — 2016-10-10
- 0.0.1 — 2016-09-26

## README

# restler-promise

[![NPM Version](https://img.shields.io/npm/v/restler-promise.svg?style=flat)](https://www.npmjs.com/package/restler-promise) ![Downloads](https://img.shields.io/npm/dm/restler-promise.svg?style=flat) [![Build Status](https://travis-ci.org/mwittig/restler-promise.svg?branch=master)](https://travis-ci.org/mwittig/restler-promise)
[![Greenkeeper badge](https://badges.greenkeeper.io/mwittig/restler-promise.svg)](https://greenkeeper.io/)


A [restler](https://github.com/danwrong/restler) wrapper for the Promises/A+ implementation of your choice. 

```
    // You may need to install bluebird first
    var Promise = require("bluebird");
    var rest = require("restler-promise")(Promise);
    rest.get("http://google.com/").then(function (response) {
        console.log(response);
    }).catch(function (errorResult) {
        // Note, the errorResult is an object containing an "error" property holding
        // the Error object and an optional "response" property holding the the response
        // object (if any). The response object will be missing, for example, if there is
        // no response from server.
        console.log(errorResult);
    });
```

## License

Copyright (c) 2015-2018, Marcus Wittig and contributors. All rights reserved.

[MIT License](https://github.com/mwittig/logger-winston/blob/master/LICENSE)

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