# deepmerge-yaml

> deep merge yaml

Latest version **0.0.3** (published 2022-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install deepmerge-yaml
pnpm add deepmerge-yaml
yarn add deepmerge-yaml
bun add deepmerge-yaml
```

Provides the command `deepmerge-yaml`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-08-02 |
| First published | 2021-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | kahirokunn |
| Maintainers | k-okina |
| Keywords | typescript, yaml, merge, deepmerge, cli, bin |

## Links

- npm: https://www.npmjs.com/package/deepmerge-yaml
- Repository: https://github.com/kahirokunn/deepmerge-yaml
- Homepage: https://github.com/kahirokunn/deepmerge-yaml#readme
- Issues: https://github.com/kahirokunn/deepmerge-yaml/issues
- npm.io page: https://npm.io/package/deepmerge-yaml

## Dependencies (3)

- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [commander](https://npm.io/package/commander.md) ^9.3.0
- [deepmerge](https://npm.io/package/deepmerge.md) ^4.2.2

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2022-08-02
- 0.0.2 — 2022-06-05
- 0.0.1 — 2021-01-28

## README

# deepmerge-yaml

deep merge yaml files

## Install

```sh
$ npm install -g deepmerge-yaml
```

## Usage

### stdio

```
$ npx deepmerge-yaml /path/to/some1.yaml /path/to/some2.yaml
```

### write file

```
$ npx deepmerge-yaml -o /path/to/some1.yaml /path/to/some2.yaml /path/to/some3.yaml
```

## Spec

```typescript
import * as fs from 'fs';
import * as path from 'path';
import { deepmergeYaml } from 'deepmerge-yaml';

const a = fs.readFileSync(path.resolve(__dirname, './a.yaml')).toString().trim();
const b = fs.readFileSync(path.resolve(__dirname, './b.yaml')).toString().trim();
const output = fs.readFileSync(path.resolve(__dirname, './output.yaml')).toString().trim();

test('nested properties', () => {
  const result = deepmergeYaml(a, b).trim();

  expect(result).toBe(output);
});
```

---
_Source: https://npm.io/package/deepmerge-yaml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
