Node.js YAML File Wrapper
JSON →node-yaml is a streamlined wrapper library for the popular js-yaml parser, simplifying file-based YAML operations in Node.js environments. It provides convenient asynchronous and synchronous methods like `read`, `write`, `readSync`, and `writeSync` for handling YAML files. The current stable version is 4.0.1. Released with native ESM support in v4.0.0, it shifted js-yaml to a peer dependency, requiring manual installation of js-yaml. It aims for a stable, active release cadence, indicated by recent minor updates following a major rewrite. Its key differentiator is abstracting away the boilerplate of file system operations when working with YAML data, making it easier to parse and serialize YAML to and from files compared to directly using js-yaml's `safeLoad` and `safeDump` functions with `fs` module operations.
Traffic · last 30 days ↑200% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇺🇦 Ukraine