We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63a3415 commit dc66abeCopy full SHA for dc66abe
src/index.ts
@@ -1,5 +1,5 @@
1
import {Parser, ParserOptions} from 'htmlparser2';
2
-import {Directive, Node, Options, Attributes} from '../types';
+import {Directive, Node, Options, Attributes} from '../types/index.d';
3
4
const defaultOptions: ParserOptions = {
5
lowerCaseTags: false,
@@ -15,7 +15,7 @@ const defaultDirectives: Directive[] = [
15
}
16
];
17
18
-export default (html: string, options: Options = {}): Node[] => {
+const parser = (html: string, options: Options = {}): Node[] => {
19
const bufArray: Node[] = [];
20
const results: Node[] = [];
21
@@ -160,3 +160,5 @@ export default (html: string, options: Options = {}): Node[] => {
160
161
return results;
162
};
163
+
164
+export default parser;
0 commit comments