# Install yaml-diff-patch with npm

Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure. Version 2.0.0 via npm; verified 2022-08-24.

## Install

```sh
sudo av install npm:yaml-diff-patch
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g yaml-diff-patch
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:yaml-diff-patch
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/yaml-diff-patch>
- **Version:** 2.0.0
- **Source summary:** Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure
- **Homepage:** <https://github.com/grantila/yaml-diff-patch#readme>
- **Repository:** <https://github.com/grantila/yaml-diff-patch>
- **Upstream docs:** <https://github.com/grantila/yaml-diff-patch#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/yaml-diff-patch/-/yaml-diff-patch-2.0.0.tgz>
- **Issue tracker:** <https://github.com/grantila/yaml-diff-patch/issues>
- **Published:** 2022-08-24T12:38:34.933Z
- **Last updated:** 2022-08-24T12:38:34.933Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- yaml-diff-patch (cli)
- yaml-overwrite (cli)
- yaml-patch (cli)
- yaml-diff-patch (alias)

## Dependencies

- fast-json-patch
- oppa
- yaml

## Build dependencies

- @types/jest
- commitizen
- jest
- rimraf
- ts-jest
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.0
- Package-manager updated: 2022-08-24
- Local data: ok
- Upstream repository: https://github.com/grantila/yaml-diff-patch
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for yaml-diff-patch. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.0.0
- **Version Count:** 6
- **Maintainers:** grantila
- **Author:** Gustaf Räntilä
- **Publisher:** grantila
- **Engines:** Node: >=14
- **Integrity:** sha512-RhfIQPGcKSZhsUmsczXAeg5jNhWXk3tAmhl2kjfZthdyaL0XXXOpvRozUp22HvPStmZsHu8T30/UEfX9oIwGxw==
- **Shasum:** 0eb4ff80a75e182e74417fb6b0b54214a49bf13d
- **Unpacked Size:** 33,034
- **File Count:** 0
- **Created At:** 2021-06-13T19:05:34.006Z
- **Latest Published At:** 2022-08-24T12:38:34.933Z
- **Modified At:** 2022-08-24T12:38:35.021Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [yaml-language-server](https://www.automicvault.com/pkg/npm/yaml-language-server/) - Both packages work with overlapping file formats or content types. Shared terms: json, yaml.
- [ajv-cli](https://www.automicvault.com/pkg/npm/ajv-cli/) - Both packages work with overlapping file formats or content types. Shared terms: fast, fast-json-patch, json, patch, yaml.
- [pajv](https://www.automicvault.com/pkg/npm/pajv/) - Both packages work with overlapping file formats or content types. Shared terms: fast, fast-json-patch, json, patch, yaml.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
