Run curl in bun shell #10688
Run curl in bun shell
#10688
-
I'm confused why Bun shell gives an error response. const options = "-sL https://example.com";
const res = await $`curl ${options}`.text();
console.log(res); Same as curl -sL https://example.com |
Beta Was this translation helpful? Give feedback.
Answered by
truongan07
Apr 30, 2024
Replies: 2 comments
-
Try this code. Hope to help
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryhkml
-
This is very helpful, thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this code. Hope to help