Catalog npm
Back to packageRELEASE DETAILS

3.2.2

npm

js-yaml

YAML 1.2 parser and serializer

parserpyyamlserializeryaml
Published6 Sept 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

175downloads
7-day window · source-reported counts20 Oct 2026
17587.50
2026-10-20: 175 · 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-201752026-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": "a34e77fe8d5e10270e225d21d07790fa17fd2927",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.2.2.tgz",
  "integrity": "sha512-LRbGv9GHzsD+GrVBXMIVODIN96VErcjot1MltAIhDqJ/OgDn3/Kl9EIc1M91o4AtApwPqc5Whm2CPf8I4XrnVw==",
  "signatures": [
    {
      "sig": "MEYCIQC8h+d70oqcvi1G3fzrqQjM48kL8yO+xgsi3rAc/mkCzAIhAJYN5URyQmiswqhl0EXXzusOr7A2WHiREu/YZOeTIf+L",
      "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:e5f93b091db12b63dbde69d7d7fe9688f3d9ca9beba800c5824ae9846edca3ff

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 →