HTML parser for node typescript
<p>I am creating a <code>node.js</code> application written in <code>Typescript</code>. Its one of the functionality is to parse HTML file. But I can't seem to find the HTML parser written in <code>Typescript</code>.</p>

<p>As, normal npm modules specified in <a href="https://stackoverflow.com/questions/7977945/html-parser-on-node-js">HTML-parser on Node.js</a> are not importing in my application.</p>

<p>I have tried installing the node.js module like</p>

<pre><code>npm install domhandler
</code></pre>

<p>and, then imported the module in my <code>main.ts</code> file like</p>

<pre><code>import * as parser from "htmlparser2"
</code></pre>

<p>It was throwing error</p>

<blockquote>
  <p>Cannot find module 'htmlparser2'</p>
</blockquote>

<p>Is there any way I can import these normal npm modules in my <code>Typescript</code> node application?<br>
Or, is there any typescript module which I can use to parse HTML file?</p>