I have a few html files on my harddrive that I\'d like to use jquery on to extract data from. Is this possible to do using cheerio? I\'ve tried giving cheerio the local pa
Extending damphat's answer to make it work for relative paths:
damphat
import fs from 'fs'; import path from 'path'; const filePath = path.join(__dirname, './path/to/file.html'); const $ = cheerio.load(fs.readFileSync(filePath));