Skip to content
New issue

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

TODO #4

Closed
6 of 7 tasks
xHyroM opened this issue Jul 13, 2022 · 3 comments
Closed
6 of 7 tasks

TODO #4

xHyroM opened this issue Jul 13, 2022 · 3 comments
Assignees

Comments

@xHyroM
Copy link
Owner

xHyroM commented Jul 13, 2022

@xHyroM xHyroM self-assigned this Jul 13, 2022
@walmartwarlord
Copy link

walmartwarlord commented Jul 15, 2022

Hey thanks for this awesome lib!

I have a question (or maybe this is a Bun specific issue).. how can we do this in Bun right now?

const p = Deno.run({
  cmd: command,
  stderr: "piped",
  stdout: "piped"
});
for await (const line of readLines(p.stdout)) {
}

with your lib we can do...

import { exec } from 'bun-utilities'

const p = exec(command);

// How to readline?

How do we readline now? Or do we have other way of reading stdout? Thanks!

@xHyroM
Copy link
Owner Author

xHyroM commented Jul 15, 2022

Hey thanks for this awesome lib!

I have a question (or maybe this is a Bun specific issue).. how can we do this in Bun right now?

const p = Deno.run({
  cmd: command,
  stderr: "piped",
  stdout: "piped"
});
for await (const line of readLines(p.stdout)) {
}

with your lib we can do...

import { exec } from 'bun-utilities'

const p = exec(command);

// How to readline?

How do we readline now? Or do we have other way of reading stdout? Thanks!

exec returns stdout as string

@xHyroM xHyroM closed this as completed Jul 30, 2022
@bucket-bot
Copy link

bucket-bot bot commented Jul 30, 2022

I'm locking the conversation so as not to create unnecessary controversy. Use /unlock to unlock

@bucket-bot bucket-bot bot locked and limited conversation to collaborators Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants