Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Generated by CoffeeScript 1.9.3
var htmlparser, object, objectToDom, self;
htmlparser = require('htmlparser2');
object = require('utila').object;
objectToDom = require('dom-converter').objectToDom;
module.exports = self = {
repeatString: function(str, times) {
var i, j, output, ref;
output = '';
for (i = j = 0, ref = times; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
output += str;
}
return output;
},
toDom: function(subject) {
if (typeof subject === 'string') {
return self.stringToDom(subject);
} else if (object.isBareObject(subject)) {
return self._objectToDom(subject);
} else {