child_process will do the task but it will convert the whole file in 1 go AFAIK