title: node.js parsing html text to get a value to a javascript variable
body: <p>I' doing this successfully to get the help text of my page of interest.</p>
  
  <pre><code>router.get('/get', function (req, res) {
      var pg = 'https://j......com/f/resource'
      console.log('get', pg);
      requestify.get(pg).then(function (resp) {
          console.log(resp.body);
      });
  });
  </code></pre>
  
  <p>Now that I have the page's text, I'm wanting to parse the text to get the value of a javascript variable which I know exists in the text.</p>
  
  <pre><code>&lt;script&gt; var x1 = {"p": {.......bla bla ...}};&lt;/script&gt;
  </code></pre>
  
  <p>I know that sometimes the <code>&lt;script&gt;</code> tag will include the type attribute; but it will not always include the type attribute.</p>
  
  <p>When I find the value of <code>x1</code> I what to use that in my javascript's app's as a value in <code>myVar</code> variable.</p>
  
  <p>If you do not have THE answer then your comment/tip as to what I should research is appreciated.</p>
  
  <p>I was hoping I would find some module I can just drop the entire text into and have the module somehow just output all variables a values for me.</p>