Skip to content

Instantly share code, notes, and snippets.

View eleonoratennyson's full-sized avatar

Eleonora Tennyson eleonoratennyson

  • Los Angeles, CA
View GitHub Profile
@eleonoratennyson
eleonoratennyson / 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;
}