node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ยป

aws-stuff

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) ->