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

feat request: provide formatters shortcuts #764

Closed
antongolub opened this issue Apr 2, 2024 · 0 comments · Fixed by #811
Closed

feat request: provide formatters shortcuts #764

antongolub opened this issue Apr 2, 2024 · 0 comments · Fixed by #811

Comments

@antongolub
Copy link
Contributor

const p = await $`cmd arg`

const json = await $`cmd arg`.json()
const json2 = p.json()
const str = await $`cmd arg`.text()

//
.text()
.json()
.buffer()
.stream()
Anonymous961 added a commit to Anonymous961/zx that referenced this issue May 16, 2024
Anonymous961 added a commit to Anonymous961/zx that referenced this issue May 17, 2024
antonmedv pushed a commit that referenced this issue May 19, 2024
* feat request: provide formatters shortcuts #764

Signed-off-by: Anil Kumar Behera <[email protected]>

* Revert "feat request: provide formatters shortcuts #764"

This reverts commit ebf8048.

* feat: provide formatters shortcuts

Signed-off-by: Anil Kumar Behera <[email protected]>

* fix: correct formatting

* fix: simplified json test

---------

Signed-off-by: Anil Kumar Behera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant