Rozbot/lib/promise/cheerio.js
2016-07-11 23:24:15 -04:00

7 lines
204 B
JavaScript

var cheerio = require('cheerio').load;
var promise = require('promise-polyfill');
module.exports = function(html) {
return new promise(function(resolve, reject) {
resolve(cheerio(html));
});
}