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",