How to use the domhandler.call function in domhandler

To help you get started, we’ve selected a few domhandler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fb55 / node-cornet / index.js View on Github external
function Handler(options){
	if(!(this instanceof Handler)) return new Handler(options);
	var that = this;
	DomHandler.call(this, function(e, dom){
		that.emit("dom", dom);
	}, options, function(elem){
		that.emit("element", elem);
	});
}

domhandler

Handler for htmlparser2 that turns pages into a dom

BSD-2-Clause
Latest version published 2 years ago

Package Health Score

78 / 100
Full package analysis