/node-aws-stuff

{S3,...}{Server,Client}, e.g. for your tests.

Primary LanguageCoffeeScriptMIT LicenseMIT

S3Server

{S3Server} = require 'aws-stuff'

server = new S3Server protocol:'http'   # default: 'https'
server.listen PORT, () ->
  console.log "Listening on #{PORT}..."

S3Client

{S3Client} = require 'aws-stuff'

b = new S3Client {
  bucket:     "takin-mah-bukket"
  key:        "..."
  secret:     "..."
  # Optional:
  customUrl:  "https://localhost:12345"
}

# data: Buffer or string (strings get UTF-8 encoded)
b.put k:"k1", data:"v1", (e) ->

b.get k:"k1", (e, data) ->