Catalog npm
Back to packageRELEASE DETAILS

3.2.3

npm

js-yaml

YAML 1.2 parser and serializer

parserpyyamlserializeryaml
Published8 Nov 2014
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

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.

Downloads & popularity

294downloads
7-day window · source-reported counts20 Oct 2026
2941470
2026-10-20: 294 · observed 2026-10-20T08:44:05.3841913Z
20 Oct20 Oct

npm · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-202942026-10-20T08:44:05.3841913Z

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
esprima
Environment
{
  "local_name": "esprima",
  "alias": false,
  "peer_metadata": null
}
~ 1.0.2runtime
argparse
Environment
{
  "local_name": "argparse",
  "alias": false,
  "peer_metadata": null
}
~ 0.1.11runtime
ansi
Environment
{
  "local_name": "ansi",
  "alias": false,
  "peer_metadata": null
}
*development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
*development
benchmark
Environment
{
  "local_name": "benchmark",
  "alias": false,
  "peer_metadata": null
}
*development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a3af632d13df5bfa95f3b8f3c4b61efe212cd750",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.2.3.tgz",
  "integrity": "sha512-G9ihATodIS5+k6bLErXh4GoN39evxvV9/0EC+zdbFr5Qh5oQrY8isLecur40OCUJf82G+pIthO8BgHDWQzazhQ==",
  "signatures": [
    {
      "sig": "MEYCIQCBjnl4yKU5Cq5IZi2m7iVhycrYTfQpmjxzTZmh6uZ0fQIhANa2HkHy2NQ2v1ZPZbPfMP/GV3I/isjW1CF36QLlFppy",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ]
}

Repository

PENDING
nodeca/js-yaml

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 08:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b5ba7ef9ada98a82b2f09159162e7e5bcc248e2823dd1eba0fc45ff2ec036464

Other collected versions

5.5.015 Oct5.4.35 Oct5.4.213 Sept3.15.226 Aug4.3.226 Aug5.4.126 AugView all collected versions →