Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
orsiemilio authored Feb 19, 2024
1 parent 59d8d7b commit c5159c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c5159c6

Please sign in to comment.