s3-server
Serve the contents of a S3 bucket (private or public) over HTTP.
$ npm install -g s3-server
$ s3-server --key $AWS_ACCESS_KEY_ID --secret $AWS_ACCESS_KEY_SECRET --bucket my-s3-bucket --port 9101
Serving my-s3-bucket on port 9101
S3 Server is a proxy server which streams resources from an S3 bucket over HTTP. For example, in the example above, a request for "http://localhost:9101/index.html" would return the contents of "index.html" in the "my-s3-bucket", regardless of whether it's private or not (so long as the key provided has access).
Parameters
--keyparameter orAWS_ACCESS_KEY_IDenvironment variable. Required.--secretparameter orAWS_SECRET_ACCESS_KEYenvironment variable. Required.--bucketparameter orS3_SERVER_BUCKETenvironment variable. Required.--portparameter orS3_SERVER_PORTenvironment variable. Optional, defaults to 3010.
Developing
Please see the bin/server.js file if you're having any problems, the code for this module is very small, it delegates the work to express and knox.