# Patcher **Repository Path**: mirrors_geosolutions-it/Patcher ## Basic Information - **Project Name**: Patcher - **Description**: utility to convert and merge patch files - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-07 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Patcher This lib allows to use jsonpath rules inside a json patch rules ## How to use it ```js import {mergeConfigsPatch} from '@mapstore/patcher'; const sourceFile = { name: "Alfredo", isValid: true, children: [{ name: "Luke" }] } const jsonPathRules = [{ "op": "remove", "jsonpath": "$.name" }] const jsonPatchRules = [{ "op": "remove", "path": "/name" }] const resultJsonPath = mergeConfigsPatch(sourceFile, jsonPathRules); const resultJsonPatch = mergeConfigsPatch(sourceFile, jsonPatchRules); console.log(resultJsonPath === resultJsonPatch) true console.log(resultJsonPath) { isValid: true, children: [{ name: "Luke" }] } ``` ## references [jsonpath](https://goessner.net/articles/JsonPath/) [json-patch](http://jsonpatch.com/)