#!/usr/bin/env node import {spawn} from 'node:child_process'; import process from 'node:process'; import mozjpeg from './index.js'; const input = process.argv.slice(2); spawn(mozjpeg, input, {stdio: 'inherit'}) .on('exit', process.exit);