title: Watch a variable in an object in Node.js
body: <p>I need to be notified on change of some variables in the <code>Object</code>. But the <code>Object</code> is not predefined. I tried the below <code>Watchers</code></p>
  
  <p><a href="https://www.npmjs.com/package/watchjs" rel="nofollow noreferrer">watchjs</a></p>
  
  <p><a href="https://www.npmjs.com/package/watch-object" rel="nofollow noreferrer">watchObject</a></p>
  
  <p><a href="https://www.npmjs.com/package/gawk" rel="nofollow noreferrer">gawk</a></p>
  
  <p>In all these watchers, the <code>Object</code> are predefined.</p>
  
  <p>I need a functionality like the below.</p>
  
  <pre><code>//Initially the Object will be empty.
  var ex1 = {      
  };
  
  //Will watch for variable1 in that Object
  watch(ex1, "variable1", function(){
      console.log("Variable1 changed");
  });
  
  //Changing or Adding a variable1 in Object. Now the above watch should trigger.
  ex1 = {
      variable1 : "Hai",
      variable2 : "Hello"
  }
  </code></pre>
  
  <p>Any <code>Watchers</code> to do so or any tweaks?</p>