TypeScript MIT

js-yaml

JavaScript YAML parser and dumper. Very fast.

N

nodeca

Dernière activité 24 sept. 2026
nodeca/js-yaml

6,6 k

étoiles

854

forks

4

issues ouvertes

Ce README est souvent en anglais.

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.
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.

Projets similaires

YAML parser and serialiser for JavaScript

TypeScriptyamlyaml-editoryaml-parser
Eeemeli
1,7 k étoiles181

A small, fast, JavaScript-based JavaScript parser

JavaScript
Aacornjs
11,5 k étoiles1,1 k

JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator

TypeScript
Bbenjamn
5,3 k étoiles365