UNPKG

yolo-scraper

Version:

A simple way to structure your web scraper.

11 lines (8 loc) 221 B
var path = require('path') var fs = require('fs') function fixture (filename) { return fs.readFileSync(path.join(__dirname, '..', 'fixtures', filename), { encoding: 'utf8' }) } module.exports = { fixture: fixture }