Plato on Github
Report Home
node_modules/domutils/test/utils.js
Maintainability
72.14
Lines of code
9
Difficulty
5.25
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
var htmlparser = require("htmlparser2"); exports.makeDom = function(markup) { var handler = new htmlparser.DomHandler(), parser = new htmlparser.Parser(handler); parser.write(markup); parser.done(); return handler.dom; };