Skip to content

Instantly share code, notes, and snippets.

@chadkirby
chadkirby / deploy-assets.js
Last active April 2, 2018 18:33
node script to recursively copy files from a local directory to an s3 bucket
#!/usr/bin/env node
const { lstatSync, readdirSync, readFileSync } = require('fs');
const { join, resolve } = require('path');
const ProgressBar = require('progress');
const { coroutine: co } = require('bluebird');
const Bucket = `xxx`;
Dog Treat Recipe
Ingredients:
1 cup of flour
1 can of tuna
1 egg
1/4 cup of cheese (preferably a strong, smelly cheese like medium or old cheese)
Instructions: