# aws-sdk-then

> Promisify the AWS SDK

Latest version **1.1.0** (published 2016-02-28) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2016-02-28 |
| First published | 2016-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jonathan Ong |
| Maintainers | jongleberry |
| Keywords | aws, sdk, then, promise |

## Links

- npm: https://www.npmjs.com/package/aws-sdk-then
- Repository: https://github.com/jonathanong/aws-sdk-then
- Homepage: https://github.com/jonathanong/aws-sdk-then#readme
- Issues: https://github.com/jonathanong/aws-sdk-then/issues
- npm.io page: https://npm.io/package/aws-sdk-then

## Dependencies (2)

- [memorizer](https://npm.io/package/memorizer.md) ^1.0.1
- [any-promise](https://npm.io/package/any-promise.md) ^1.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

- 1.1.0 (latest) — 2016-02-28
- 1.0.0 — 2016-01-19
- 0.0.0 — 2016-01-19

## README

# aws-sdk-then

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

Monkey patches the AWS SDK so that it returns promises.
Similar to [aws-sdk-promise](https://github.com/lightsofapollo/aws-sdk-promise) with some philosophical differences:

- Uses [native-or-bluebird](https://github.com/normalize/native-or-bluebird).
- Does not return the SDK, so AWS SDK will not be a peer dependency.
- Only supports node v4+
- You don't have to do `.promise()` to return the promise
- Tests

Do not use this in modules, only your apps!

## Usage:

```js
const AWS = require('aws-sdk')

// patch the AWS instance
require('aws-sdk-then').patch(AWS)

// create a new S3 instance
const S3 = new AWS.S3()

// use it
S3.getObject({
  Bucket: 'whatever',
  Key: 'whatever'
}).then(result => {

})
```

[npm-image]: https://img.shields.io/npm/v/aws-sdk-then.svg?style=flat-square
[npm-url]: https://npmjs.org/package/aws-sdk-then
[travis-image]: https://img.shields.io/travis/jonathanong/aws-sdk-then/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/jonathanong/aws-sdk-then
[codecov-image]: https://img.shields.io/codecov/c/github/jonathanong/aws-sdk-then/master.svg?style=flat-square
[codecov-url]: https://codecov.io/github/jonathanong/aws-sdk-then
[david-image]: http://img.shields.io/david/jonathanong/aws-sdk-then.svg?style=flat-square
[david-url]: https://david-dm.org/jonathanong/aws-sdk-then
[license-image]: http://img.shields.io/npm/l/aws-sdk-then.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/aws-sdk-then.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/aws-sdk-then

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