taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

Export NodeType again #27

Closed isellsoap closed 4 years ago

isellsoap commented 4 years ago

In https://github.com/taoqf/node-html-parser/commit/cba17a7439e22baa8e3c9ffb152a0d4e6261ed5b the export of NodeType got removed (by accident?). I cannot upgrade to the latest version because of this.

It would be nice to have access to the enum and to be able to import it.

isellsoap commented 4 years ago

It still gets exported, but kinda hidden:

import NodeType from 'node-html-parser/dist/nodes/type'

Would be nice to be able to access NodeType as a named import from the root.

taoqf commented 4 years ago

Thank you for your report.

import { NodeType } from 'node-html-parser';

will be ok.