From c5159c665a8bbff4a241d09e73b99a44ad49d245 Mon Sep 17 00:00:00 2001 From: Emilio Orsi Date: Mon, 19 Feb 2024 15:18:42 -0300 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1d62d47..77f6142 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,10 @@ const shaper = new JsonShapeShifter({ const input = { name: "John" }; const output = shaper.formatJsByTemplate(input); console.log(output); // Output: { NAME: "JOHN" } +``` ## Path-Specific Processing +```javascript const shaper = new JsonShapeShifter({ pathProcessors: { "details.age": (value) => value > 18 ? "adult" : "minor",