A simple node script to run files through the tinyjpg optimizer. (JPGs and PNGs only)
You will need node and npm to run this, as well as an api key from tinypng
- Install your packages:
npm i
- Update your
config.js
with your api key. - Update your
config.js
with the starting + ending directory for the files you want to optimize (or play around with the examples). - Run the script:
node tiny.js