Skip to content

Commit

Permalink
Merge pull request #104 from ad-m/patch-1
Browse files Browse the repository at this point in the history
Use promises to writeFile in README
  • Loading branch information
jeromewu authored Nov 5, 2020
2 parents 6d4fbc3 + 20c7700 commit 233e2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ffmpeg = createFFmpeg({ log: true });
await ffmpeg.load();
ffmpeg.FS('writeFile', 'test.avi', await fetchFile('./test.avi'));
await ffmpeg.run('-i', 'test.avi', 'test.mp4');
fs.writeFileSync('./test.mp4', ffmpeg.FS('readFile', 'test.mp4'));
await fs.promises.writeFile('./test.mp4', ffmpeg.FS('readFile', 'test.mp4'));
process.exit(0);
})();
```
Expand Down

0 comments on commit 233e2f1

Please sign in to comment.