tinify / tinify-nodejs

Node.js client for the Tinify API.
https://tinypng.com/developers
MIT License
414 stars 74 forks source link

Grab a set of files from Folders. #15

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

Could there be more documentation about using folders, or perhaps just a tip or simple example ?

ex: tinify.fromFile > tinify.fromFolder

Kindest regards !

simonwahlstrom commented 6 years ago

Hi there,

The library currently does not have any specific logic for compressing entire folders. It could be a nice improvement though so I will add it to our improvements lists!

If you need help on how to get all files from a folder, then perhaps this could be of help: https://stackoverflow.com/questions/2727167/how-do-you-get-a-list-of-the-names-of-all-files-present-in-a-directory-in-node-j