The input is an html string, so you need to read the html content yourself:
var fs = require('fs');
cheerio.load(fs.readFileSync('path/to/file.html'));
The input is an html string, so you need to read the html content yourself:
var fs = require('fs');
cheerio.load(fs.readFileSync('path/to/file.html'));