title: How to use NPM package as normal javascript in HTML
body: <p>I want to use html2canvas JS library in my application. I were able to use older versions of html2canvas in my application by directly loading html2canvas.js file in my HTML file.</p>
  
  <p>But newer versions are supported only through npm packages.</p>
  
  <p>When I try to include newer html2canvas.js in my HTML file, it says </p>
  
  <blockquote>
    <p>html2canvas is not defined</p>
  </blockquote>
  
  <p>I had tried to modify html2canvas.js file, so that I can directly use it in my HTML file, without using any other package manager or other dependencies.</p>
  
  <p>I had downloaded html2canvas from <a href="https://github.com/niklasvh/html2canvas/releases" rel="noreferrer">here</a>. I am unbale to use it by loading this file directly in HTML file. as below</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/html2canvas.js"&gt;&lt;/script&gt;
  </code></pre>