We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.26+c75e768a6
Linux 6.7.2-arch1-1 x86_64 unknown
file.txt
Hi there
bunfile.js
const file = Bun.file("./file.txt"); const slice = file.slice(1); console.log(await slice.text()); const decoder = new TextDecoder('utf-8'); for await (const chunk of slice.stream()) { console.log(decoder.decode(chunk)); }
I would expect both of them to be offset.
Running bun bunfile.js prints:
bun bunfile.js
i there Hi there
No response
The text was updated successfully, but these errors were encountered:
Duplicate of #7057
Sorry, something went wrong.
Sorry, didn't see the dup. I searched for "file stream" but didn't see anything obvious in the current issues.
No branches or pull requests
What version of Bun is running?
1.0.26+c75e768a6
What platform is your computer?
Linux 6.7.2-arch1-1 x86_64 unknown
What steps can reproduce the bug?
file.txt
bunfile.js
What is the expected behavior?
I would expect both of them to be offset.
What do you see instead?
Running
bun bunfile.js
prints:Additional information
No response
The text was updated successfully, but these errors were encountered: