Catalog npm
Back to packageRELEASE DETAILS

4.3.1

npm

js-yaml

YAML 1.2 parser and serializer

parserpyyamlserializeryaml
Published31 Jul 2026
Direct dependencies16
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

8,612,048downloads
7-day window · source-reported counts20 Oct 2026
8.6M4.3M0
2026-10-20: 8,612,048 · 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-208,612,0482026-10-20T08:44:05.3841913Z

Declared dependencies 16

Native requirements
16 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
argparse
Environment
{
  "local_name": "argparse",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
c8
Environment
{
  "local_name": "c8",
  "alias": false,
  "peer_metadata": null
}
^11.0.0development
vite
Environment
{
  "local_name": "vite",
  "alias": false,
  "peer_metadata": null
}
7.3.6development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9.39.4development
gh-pages
Environment
{
  "local_name": "gh-pages",
  "alias": false,
  "peer_metadata": null
}
^6.3.0development
tinybench
Environment
{
  "local_name": "tinybench",
  "alias": false,
  "peer_metadata": null
}
^6.0.2development
codemirror
Environment
{
  "local_name": "codemirror",
  "alias": false,
  "peer_metadata": null
}
^5.65.21development
fast-check
Environment
{
  "local_name": "fast-check",
  "alias": false,
  "peer_metadata": null
}
^4.8.0development
workerpool
Environment
{
  "local_name": "workerpool",
  "alias": false,
  "peer_metadata": null
}
^10.0.2development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
8.0.1development
neostandard
Environment
{
  "local_name": "neostandard",
  "alias": false,
  "peer_metadata": null
}
^0.13.0development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
8.0.1development
@rollup/plugin-terser
Environment
{
  "local_name": "@rollup/plugin-terser",
  "alias": false,
  "peer_metadata": null
}
0.4.4development
vite-plugin-singlefile
Environment
{
  "local_name": "vite-plugin-singlefile",
  "alias": false,
  "peer_metadata": null
}
^2.3.3development
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
29.0.3development
vite-plugin-node-polyfills
Environment
{
  "local_name": "vite-plugin-node-polyfills",
  "alias": false,
  "peer_metadata": null
}
^0.28.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "01216c001d67f48e2cd560d708c7af21090a3848",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
  "fileCount": 36,
  "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==",
  "signatures": [
    {
      "sig": "MEQCIEfeJDHJVb3WYEp2tLJa3SHD/hh6ar8/boVLSQuPYgNIAiBpVH1Lgv2q4deM2fhLqeV+HS691NZLmCcAaMld2JjcUg==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    },
    {
      "sig": "MEQCIEZsasSqJgdEzohFyrJTbfpYS1kTxmDg2sSQTZQQcfmaAiAr3WSz8NcSYBbTY8sANLxf9n/vbwzCkrNjR3Uz3ROqQQ==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 957953
}

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:15 UTC

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

Record identity

package_version:5ecfb3245d8b0d06aee1819ff6cbf97b87f6422d0a6b442e8c1ae08e59b4ae76

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 →