New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

js-yaml

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-yaml

YAML 1.2 parser and serializer

latest
Source
npmnpm
Version
5.4.2
Version published
Weekly downloads
215M
-0.64%
Maintainers
1
Weekly downloads
 
Created
Source

js-yaml

CI NPM version

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
npm install js-yaml
Usage
import { load } from 'js-yaml'

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

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

More usage examples.

Keywords

yaml

FAQs

Package last updated on 13 Sep 2026

Related posts