aws-as-promised

2019-07-21 admin

aws-as-promised是什么

什么是aws-as-promised,Yet another AWS SDK promise wrapper

aws-as-promised使用教程帮助文档

aws-as-promised Build Status

Yet another AWS SDK promise wrapper.

Why yet another?

Because every wrapper I found does things that I don’t want:

  • I don’t want a dependency on a promise library. ES6 is there, and if it isn’t, there are polyfills.
  • I don’t want a different API than the original AWS SDK. I just want the same API with promises.

Installation

npm install --save aws-as-promised

Usage

import { S3 } from 'aws-as-promised';

let s3 = new S3({ /* options */ });

async function example() {
  let data = await s3.getObject({ Bucket: 'bucket-name', Key: 'object-key' });
};

To do

  • Complete the API (I implemented only what I needed).

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-70285.html

文章标题:aws-as-promised

回到顶部