Catalog npm
Back to packageRELEASE DETAILS

2.0.5

npm

js-yaml

YAML 1.2 parser and serializer

parserpyyamlserializeryaml
Published26 Apr 2013
Direct dependencies3
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

75,396downloads
7-day window · source-reported counts20 Oct 2026
75.4K37.7K0
2026-10-20: 75,396 · 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-2075,3962026-10-20T08:44:05.3841913Z

Declared dependencies 3

Native requirements
3 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
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
*development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a25ae6509999e97df278c6719da11bd0687743a8",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz",
  "integrity": "sha512-VEKcIksckDBUhg2JS874xVouiPkywVUh4yyUmLCDe1Zg3bCd6M+F1eGPenPeHLc2XC8pp9G8bsuofK0NeEqRkA==",
  "signatures": [
    {
      "sig": "MEUCICH92GYWEtYIP4pQ7ZwXFwF2Xm5GVSwtoXi6Do1LuB0JAiEA3Vuhhs6R6sdhDUBVGLXUT0Ap1rvK5kzUoqnB2Mb/O9g=",
      "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:fab4ef2cdddc59fc659d49ec25404b8eccd71d8e055076e743bbd5bab18e6623

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 →