{"size": 348, "ext": "js", "max_stars_repo_path": "ImageOptimizer-npm/scripts/jpegtran.js", "max_stars_repo_name": "EscuelaIt/Optimizacion-Imagenes", "max_stars_repo_stars_event_min_datetime": "2019-02-19T09:02:09.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-17T22:27:32.000Z", "max_issues_repo_path": "ImageOptimizer-npm/scripts/jpegtran.js", "max_issues_repo_name": "EscuelaIt/Optimizacion-Imagenes", "max_issues_repo_issues_event_min_datetime": "2021-03-09T00:58:17.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-09T00:58:17.000Z", "max_forks_repo_path": "ImageOptimizer-npm/scripts/jpegtran.js", "max_forks_repo_name": "EscuelaIt/Optimizacion-Imagenes", "max_forks_repo_forks_event_min_datetime": "2019-02-20T15:09:43.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-20T15:09:43.000Z"}
{"max_stars_count": 3, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 21.75, "max_line_length": 59, "alphanum_fraction": 0.5689655172}
const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');

(async() => {
  const files = await imagemin(
    ['./images/jpg/*.{jpg,jpeg}'],
      './output/jpegtran',
    {
      plugins:
        [
          imageminJpegtran()
        ]
    }
  );
  console.log('Images optimized with imagemin-jpegtran 😊');
})();