unitedwardrobe / imgproxy-node

A Node client library to generate urls for imgproxy services.
MIT License
36 stars 8 forks source link

Add preset only builder #11

Closed luca-nardelli closed 2 years ago

luca-nardelli commented 2 years ago

Hi! First of all thanks for working on this package, it really makes working with imgproxy much easier!

With this PR I added a special builder that handles the ONLY_PRESETS configuration of imgproxy: https://github.com/imgproxy/imgproxy/blob/master/docs/presets.md#only-presets

I also added basic Jest configuration for tests

Let me know if I need to change anything else for this PR!

luca-nardelli commented 2 years ago

Base class is definitely a good idea, I've amended my last commit with this change and I removed the license update. Let me know if there's anything else to do