Catalog npm
Back to packageRELEASE DETAILS

3.5.0

npm

js-yaml

YAML 1.2 parser and serializer

parserpyyamlserializeryaml
Published10 Jan 2016
Direct dependencies11
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

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

Declared dependencies 11

Native requirements
11 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
esprima
Environment
{
  "local_name": "esprima",
  "alias": false,
  "peer_metadata": null
}
^2.6.0runtime
inherit
Environment
{
  "local_name": "inherit",
  "alias": false,
  "peer_metadata": null
}
^2.2.2runtime
argparse
Environment
{
  "local_name": "argparse",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
ansi
Environment
{
  "local_name": "ansi",
  "alias": false,
  "peer_metadata": null
}
*development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
*development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
0.24.1development
istanbul
Environment
{
  "local_name": "istanbul",
  "alias": false,
  "peer_metadata": null
}
*development
benchmark
Environment
{
  "local_name": "benchmark",
  "alias": false,
  "peer_metadata": null
}
*development
uglify-js
Environment
{
  "local_name": "uglify-js",
  "alias": false,
  "peer_metadata": null
}
^2.6.1development
browserify
Environment
{
  "local_name": "browserify",
  "alias": false,
  "peer_metadata": null
}
^13.0.0development
eslint-plugin-nodeca
Environment
{
  "local_name": "eslint-plugin-nodeca",
  "alias": false,
  "peer_metadata": null
}
^1.0.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "617f504af336e98c219a8a6eb7d67ab1b7072fcc",
  "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.0.tgz",
  "integrity": "sha512-zGmrRla6y/pMr3H2oU1EFi8MyYCXNUQ9PjKVA/RFql3KEsCMJlNnJXKzLJqyUNjmkyb694c6QhA8sgka30188w==",
  "signatures": [
    {
      "sig": "MEQCIEBe4lurEGQYC9UueW3Z74G63p1xMveHyNRcF6uwsRzaAiBijgUSvBlab6u6DaLrSaADubhPEm5raaZFa+fjQdBaNw==",
      "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:15 UTC

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

Record identity

package_version:f7fe6bd460423ee3ebb876d19b1d8a60dccf27fcf81ed24d44de79278b35eb22

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 →