Skip to content

[DEPRECATED] aws-sdk now supports promises, albeit terribly

License

Notifications You must be signed in to change notification settings

thenables/aws-sdk-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-sdk-then

NPM version Build status Test coverage Dependency Status License Downloads

Monkey patches the AWS SDK so that it returns promises. Similar to aws-sdk-promise with some philosophical differences:

  • Uses 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:

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 => {

})

About

[DEPRECATED] aws-sdk now supports promises, albeit terribly

Resources

License

Stars

Watchers

Forks

Packages

No packages published