# json-merge-shopify

> ## JSON Merger

Latest version **1.0.1** (published 2023-05-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install json-merge-shopify
pnpm add json-merge-shopify
yarn add json-merge-shopify
bun add json-merge-shopify
```

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-29 |
| First published | 2023-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 83.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | smartimpact |
| Keywords | json, merge, git, shopify |

## Links

- npm: https://www.npmjs.com/package/json-merge-shopify
- Repository: https://github.com/siit-dev/json-merge-shopify
- Homepage: https://github.com/siit-dev/json-merge-shopify#readme
- Issues: https://github.com/siit-dev/json-merge-shopify/issues
- npm.io page: https://npm.io/package/json-merge-shopify

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^10.2.6
- [js-levenshtein](https://npm.io/package/js-levenshtein.md) ^1.1.6

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-05-29

## README

# JSON Merger and formatter for Shopify

## JSON Merger

The library handles merging JSON objects and arrays.

```bash
npm install --save @smartimpact-it/json-merge-shopify
```

```javascript
import { Merger } from '@smartimpact-it/json-merge-shopify';
const merger = new Merger({
  ancestor,
  ours,
  theirs,
  preferred,
  filename,
});
const merged = merger.merge();
```

## JSON formatter

This formats JSON files to be Shopify compatible.

```javascript
import { formatJson } from '@smartimpact-it/json-merge-shopify';
const formatted = formatJson(json);
```

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