Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

js-yaml

> 编程语言
Open source

JavaScript YAML parser and dumper. Very fast.

6.6K stars0 likes2 views
WebsiteGitHub

About

JavaScript YAML parser and dumper. Very fast.

js-yaml

YAML 1.2 parser and serializer for JavaScript.

Online demo

  • Supports the YAML 1.2 and YAML 1.1 specifications.
  • Passes the entire YAML Test Suite.

Documentation >>

Install
bash
npm install js-yaml
Usage
javascript
import { load } from 'js-yaml'

try {
  const document = load('greeting: hello')
  console.log(document.greeting)
} catch (e) {
  console.error(e)
}
javascript
import { dump } from 'js-yaml'

const source = dump({ greeting: 'hello' })
console.log(source)

More usage examples.

Issues· 4 open

View all issuesOpen on GitHub
  • #647

    linewidth just for strings

    Updated Sep 13, 2026
  • #796

    [memo] Possible TODOs

    Updated Sep 10, 2026
  • #280

    Loader must throw an error on zero-indentation block scalar

    Updated Jun 20, 2026
  • #441

    Feature request: vertical whitespace option

    Updated Dec 10, 2023

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言