Format worker code with these settings:
{
"tabWidth": 2,
"useTabs": true,
"arrowParens": "avoid",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none"
}Refactor code. Some examples:
- Make less repetitive i.e. cmd.stderr, cmd.on('error' and cmd.on('close' are repeating for video manipulation functions. They need to be added once.
- Remove unused variables.
- Change var to let, const as scope appropriate.
- Rename function like 'callback' to more descriptive names.
Also, add a progress bar to display current video status with bitrate, frame, time and speed data.
Code repos:



