Example Usage
1import { chokidar } from "hbh-nodes";3const data = {4 user: { name: "Alice", age: 25 },5 items: [1, 2, 3],6 settings: new Map([['theme', 'dark']])7};9const watched = chokidar(data);1112watched.user.on('update', (path, oldVal, newVal) => {13 console.log(`Updated ${path}:`, oldVal, '→', newVal);14});16watched.user.name = "Bob"; 171920watched.items.on('update', (path, oldVal, newVal) => {21 console.log(`Array updated at ${path}:`, oldVal, '→', newVal);22});24watched.items.push(4); 252728watched.settings.on('add', (path, _, newVal) => {29 console.log(`Added to ${path}:`, newVal);30});32watched.settings.set('language', 'en'); 33