# aws-sdk-promise

> Hack for adding the .promise() method to all aws-sdk request objects (aws-sdk is a peerDependency)

Latest version **0.0.2** (published 2015-01-29) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install aws-sdk-promise
pnpm add aws-sdk-promise
yarn add aws-sdk-promise
bun add aws-sdk-promise
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-01-29 |
| First published | 2014-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Lal [:lightsofapollo] |
| Maintainers | lights-of-apollo, jonasfj |
| Keywords | aws, aws-sdk, promise |

## Links

- npm: https://www.npmjs.com/package/aws-sdk-promise
- Repository: https://github.com/lightsofapollo/aws-sdk-promise
- Issues: https://github.com/lightsofapollo/aws-sdk-promise/issues
- npm.io page: https://npm.io/package/aws-sdk-promise

## Dependencies (1)

- [promise](https://npm.io/package/promise.md) ^6.1.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-01-29
- 0.0.0 — 2014-02-11

## README

# aws-sdk-promise

Hack for adding the .promise() method to all aws-sdk request objects (aws-sdk is a peerDependency).

## How it works?

Take a look at [the source](/index.js) the short version its a terrible
hack into the AWS.Request object (which aws-sdk returns from just about
all api calls).

## Usage

```js
// AWS is identical to aws-sdk but it has .promise method on all
// requests
var AWS = require('aws-sdk-promise');
var ec2 = new AWS.EC2({ region: 'us-west-2' });

ec2.describeAccountAttributes({}).promise().then(
  function(req) {
    // the promise is resolved on the 'complete' event of request object
    console.log(JSON.stringify(req.data, null, 2));
  },
  function(error) {
    // rejected if the 'complete' event contains an error
    console.log(error);
  }
);

```

Credit: https://github.com/aws/aws-sdk-js/issues/13#issuecomment-11868232

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