Skip to content

Commit

Permalink
Docs: change createReadStream to fs.createReadStream (#7511)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaneshS288 authored Feb 25, 2025
1 parent 8f8f028 commit ebc0e82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function downloadFile(url, outoutPath) {
}

async function readFile(filePath) {
const readStream = createReadStream(filePath, { encoding: 'utf8' });
const readStream = fs.createReadStream(filePath, { encoding: 'utf8' });

try {
for await (const chunk of readStream) {
Expand Down

0 comments on commit ebc0e82

Please sign in to comment.