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
spawn
As far as I can tell, there's no way to get spawn to act like node's spawn with stdout.
stdout
Code like the following, simply does not work (because tail -f never finishes, it's a long-running process):
tail -f
const { spawn } = require('bun-utilities/spawn.js') const child = spawn('tail', ['-f', 'access.log']) console.log(child)
Bun version: 0.1.13
0.1.13
In node land, we would listen for events from stdout like so:
const { spawn } = require('child_process') const child = spawn('tail', ['-f', 'access.log']) child.on('close', code => { ... }) child.stdout.on('data', data => { ... })
NOTE: exec behaves the same way.
exec
The text was updated successfully, but these errors were encountered:
I can try to do something like this
Sorry, something went wrong.
It will be implemented in Bun, Bun.spawn
No branches or pull requests
As far as I can tell, there's no way to get
spawn
to act like node's spawn withstdout
.Code like the following, simply does not work (because
tail -f
never finishes, it's a long-running process):Bun version:
0.1.13
In node land, we would listen for events from
stdout
like so:NOTE:
exec
behaves the same way.The text was updated successfully, but these errors were encountered: