Catalog npm
Back to packageRELEASE DETAILS

0.2.0

npm

js-yaml

YAML 1.1 Parser

parserpyyamlyamlserializer
Published2 Nov 2011
Direct dependencies1
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

77downloads
7-day window · source-reported counts20 Oct 2026
7738.50
2026-10-20: 77 · 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-20772026-10-20T08:44:05.3841913Z

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
jsclass
Environment
{
  "local_name": "jsclass",
  "alias": false,
  "peer_metadata": null
}
3.0.4runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a2480a4db3c6896e4a5db16b99b504cb2768cc32",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-0.2.0.tgz",
  "integrity": "sha512-o6S45ie8keyNDekNzq2l4UCBsJ/UjOosg/RI3on4xRgLLltrEsRX3ffHKaF9tQ+ypZb0nEDSz0kucExz+CEQYg==",
  "signatures": [
    {
      "sig": "MEYCIQDUGKVXko2GhU5/UZyDOJZAP6i/L+JNznMRKa5/hI4I/wIhAN4X2wyITUXqD4syJahjzZqEc6Z3UIgB/w5IJeqmiqWX",
      "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:5b2966ff4b8735360ff76b00b5bcdde0e7b6abbf99b57ad8d1f2bba82d43b511

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 →