Skip to content

Instantly share code, notes, and snippets.

@alanhoff
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanhoff/b597026726712dfda3b2 to your computer and use it in GitHub Desktop.
Save alanhoff/b597026726712dfda3b2 to your computer and use it in GitHub Desktop.
var util = require('util');
module.exports = function getUrl(bucket, object, insegure){
return util.format('%s://%s.s3.amazonaws.com/%s', insecure? 'http' : 'https', bucket, object);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment