Closed spoon16 closed 6 years ago
hi @spoon16!
Sorry this took an extra week to get to. I went ahead and installed babel and am transpiling for compatibility with Node v4/5.
Thanks for an excellent PR ✨ I'm merging and publishing this along with the babel work.
I did not expect you to merge. Thanks!
I threw this together while I was waiting for a new environment to come up in AWS because I heard you say you were interesting in people helping you move your repositories to more modern JS syntax/patterns. This does break backwards compatibility with some old versions of node. You could probably fix that with webpack/babel if maintaining that compatibility is important.
Set minimum node version in package.json to support ES6 features. Refactored
avrgirlUsbTinyIsp
to be an ES6 class. Refactored most the the callbacks to use lambda syntax. Refactored some string concatenation to use template literals.This diff is a bit gross because of the refactor to ES6 class syntax. Feel free to reject if that's frustrating.