coaws
co yield your amazon aws-sdk!
Last updated 5 years ago by javascriptismagic .
Unlicence · Bugs · Original npm · Tarball · package.json
$ cnpm install coaws 
SYNC missed versions from official npm registry.

coaws

A co-ready aws-sdk wrapper

Intended to function exactly the same as the aws-sdk module, except you yield instead of pass in callbacks, (intended to support all aws-sdk services.)

Examples:

yield s3.listBuckets

co = require 'co'
{S3} = require 'coaws'

s3 = new S3
  accessKeyId: 'QWERTYUIOPASDFGHJKLZ'
  secretAccessKey: 'QweRTyuIopasDfgHjKlzXcvBNm12q43wWERTY45E'
  region: 'us-east-1'
co ->
  list = yield s3.listBuckets()
  console.log list

yield ses.sendEmail

co = require 'co'
{SES} = require 'coaws'

ses = new SES
  accessKeyId: 'QWERTYUIOPASDFGHJKLZ'
  secretAccessKey: 'QweRTyuIopasDfgHjKlzXcvBNm12q43wWERTY45E'
  region: 'us-east-1'
co ->
  result = yield ses.sendMail
    Destination: ToAddresses: ['example@gmail.com']
    Message:
      Subject: Data: 'Example'
      Body:
        Text: Data: 'This is an Example Email.'
        Html: Data: '<h1 style="color:red;">This is an Example Email.</h1>'

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |