Read from stdout as a JSON object
Automatically calls quiet
Search the reference...
/
method
Read from stdout as a JSON object
Automatically calls quiet
A promise that resolves with stdout as a JSON object
const output = await $`echo '{"hello": 123}'`.json();
console.log(output); // { hello: 123 }
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →