yaml
npmv2.9.0TypeScriptJavaScript 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| yamlthis page | 176.1M | 6 | ISC | 4 months ago |
| @adobe/css-tools | 0 | 2 | MIT | 1 day ago |
| commander | 451.1M | 11 | MIT | 1 day ago |
| postcss | 249.3M | 7 | MIT | 1 day ago |
| yargs-parser | 178.8M | 2 | ISC | 1 day ago |
| esprima | 77.6M | 5 | BSD-2-Clause | 1 day ago |
Dependencies
Declared by yaml v2.9.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (21)
Used by
Popular packages that depend on yaml.
Native-ESM powered web dev build tool
AST-aware v8-to-istanbul
Core istanbul API for JS code coverage
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Message based Two-way remote procedure call
This package is part of the [React Native CLI](../../README.md). It contains commands for diagnosing and fixing common Node.js, iOS, Android & React Native issues.
Relationship graph
Dependencies (left) and dependents (right) of yaml.
Frequently installed together
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
A pure JavaScript implementation of Sass.
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Vite DevTools
Trace the original position through a source map
A JavaScript parser
Traverse an ESTree-compliant AST
Modify strings, generate sourcemaps
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
The tiniest and the fastest library for terminal output formatting with ANSI colors
Tool for transforming styles with JS plugins
Release history
11 releases in the last two years, typically about 42 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.9.0latest | 4 months ago | 670 KB | ISC |
| 3.0.0-1 | 4 months ago | 278 KB | ISC |
| 2.8.4 | 4 months ago | 669 KB | ISC |
| 2.8.3 | 5 months ago | 669 KB | ISC |
| 1.10.3 | 5 months ago | 391 KB | ISC |
| 3.0.0-0 | 6 months ago | 268 KB | ISC |
| 2.8.2 | 9 months ago | 667 KB | ISC |
| 2.8.1 | 1 year ago | 667 KB | ISC |
| 2.8.0 | 1 year ago | 667 KB | ISC |
| 2.7.1 | 1 year ago | 667 KB | ISC |
| 2.7.0 | 1 year ago | 665 KB | ISC |
| 2.6.1 | 1 year ago | 666 KB | ISC |
| 2.6.0 | 1 year ago | 665 KB | ISC |
| 2.5.1 | 2 years ago | 659 KB | ISC |
| 2.5.0 | 2 years ago | 660 KB | ISC |
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.