Skip to content

andrewschaaf/node-aws-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published