Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dax/mod.ts>CommandBuilder#json

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method CommandBuilder.prototype.json
Re-export
import { CommandBuilder } from "https://deno.land/x/dax@0.24.1/mod.ts";

Sets stdout as quiet, spawns the command, and gets stdout as JSON.

Shorthand for:

const data = (await $`command`.quiet("stdout")).stdoutJson;

Type Parameters

optional
TResult = any