Skip to content

Instantly share code, notes, and snippets.

Last active Mar 27, 2018
What would you like to do?
function getS3File(bucket, key) {
return new Promise(function(resolve, reject) {
Bucket: bucket,
Key: key
function (err, data) {
if (err) return reject(err);
else return resolve(data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment