Skip to content

Commit

Permalink
readme: fix deprecated os.tmpDir in example
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulbhj authored and mscdex committed Mar 13, 2022
1 parent d7e4e2d commit 5f20709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -101,7 +101,7 @@ http.createServer((req, res) => {
if (req.method === 'POST') {
const bb = busboy({ headers: req.headers });
bb.on('file', (name, file, info) => {
const saveTo = path.join(os.tmpDir(), `busboy-upload-${random()}`);
const saveTo = path.join(os.tmpdir(), `busboy-upload-${random()}`);
file.pipe(fs.createWriteStream(saveTo));
});
bb.on('close', () => {
Expand Down

0 comments on commit 5f20709

Please sign in to comment.