Parse a YAML string into a JavaScript value
function parse | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/YAML/parseFparse BuildDocsReferenceGuidesBlogDiscord /Bun/YAML/parseFparse YAML.parsefunction parse(input: string): unknown; @param input @returns
Search the reference...
/
function
The YAML string to parse
A JavaScript value
import { YAML } from "bun";
console.log(YAML.parse("123")) // 123
console.log(YAML.parse("null")) // null
console.log(YAML.parse("false")) // false
console.log(YAML.parse("abc")) // "abc"
console.log(YAML.parse("- abc")) // [ "abc" ]
console.log(YAML.parse("abc: def")) // { "abc": "def" }
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function parse | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function bun.YAML.parse | Bun