</>PackageGraphPackageGraph

yaml

npmv2.9.0TypeScript

JavaScript parser and stringifier for YAML

Safe to adopt

Yes — yaml scores well across adoption, maintenance, weight, supply chain, and licensing. 176.1M downloads per week and 6 known dependents. Last published 121 days ago. 13 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    176.1M downloads per week and 6 known dependents.

  • BMaintenance: grade B, Good.

    Last published 121 days ago. 13 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 670 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    ISC — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding yaml to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

670 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >= 14.6
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the yaml README.

import { parse, stringify } from 'yaml'

yaml vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
yamlthis page176.1M6ISC4 months ago
@adobe/css-tools02MIT1 day ago
commander451.1M11MIT1 day ago
postcss249.3M7MIT1 day ago
yargs-parser178.8M2ISC1 day ago
esprima77.6M5BSD-2-Clause1 day ago

Dependencies

Declared by yaml v2.9.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (21)

@babel/core ^7.12.10@babel/plugin-transform-typescript ^7.12.17@babel/preset-env ^7.12.11@eslint/js ^9.9.1@rollup/plugin-babel ^6.0.3@rollup/plugin-replace ^6.0.3@rollup/plugin-typescript ^12.1.1@types/jest ^29.2.4@types/node ^20.11.20babel-jest ^29.0.1eslint ^9.9.1eslint-config-prettier ^10.1.8fast-check ^2.12.0jest ^29.0.1jest-resolve ^29.7.0jest-ts-webcompat-resolver ^1.0.0prettier ^3.0.2rollup ^4.12.0tslib ^2.8.1typescript ^5.7.2typescript-eslint ^8.4.0

Used by

Popular packages that depend on yaml.

Relationship graph

Dependencies (left) and dependents (right) of yaml.

Frequently installed together

Release history

11 releases in the last two years, typically about 42 days apart.

Recent versions of yaml
VersionPublishedSizeLicense
2.9.0latest4 months ago670 KBISC
3.0.0-14 months ago278 KBISC
2.8.44 months ago669 KBISC
2.8.35 months ago669 KBISC
1.10.35 months ago391 KBISC
3.0.0-06 months ago268 KBISC
2.8.29 months ago667 KBISC
2.8.11 year ago667 KBISC
2.8.01 year ago667 KBISC
2.7.11 year ago667 KBISC
2.7.01 year ago665 KBISC
2.6.11 year ago666 KBISC
2.6.01 year ago665 KBISC
2.5.12 years ago659 KBISC
2.5.02 years ago660 KBISC

Overview

yaml is an npm package that javaScript parser and stringifier for YAML. It is extremely widely used, with about 176.1M downloads per week and 6 known dependents in the graph. The latest version is 2.9.0, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need javaScript parser and stringifier for YAML and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (176.1M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (ISC).

Cons

  • Large dependency tree (21 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use yaml?

Yes — yaml scores well across adoption, maintenance, weight, supply chain, and licensing. 176.1M downloads per week and 6 known dependents. Last published 121 days ago. 13 releases in the last 2 years.

How do I install yaml?

Run `npm install yaml` to add yaml to your npm project.

What license is yaml released under?

yaml is distributed under the ISC license.

How popular is yaml?

yaml has approximately 176,099,792 downloads per week and 6 known dependent packages.

Is yaml still maintained?

The most recent release of yaml (v2.9.0) was published 4 months ago.

Does yaml run install scripts?

No. yaml does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.