Skip to content

Instantly share code, notes, and snippets.

View burkel24's full-sized avatar

Burke Livingston burkel24

View GitHub Profile
@burkel24
burkel24 / S3.js
Last active November 30, 2017 16:36
A tiny command line tool to upload a file to AWS S3
// yarn add s3
const s3 = require('s3');
const helpPrases = ['help', '?', '-help', '--help'];
if (!process.argv[2] || helpPrases.includes(process.argv[2])) {
console.log(`USEAGE: node s3.js <path to file> <bucket name> <destination name>`);
return;
}