var path = require('path') var read = require('fs').readFileSync var html = read(path.resolve(__dirname, 'index.html')) var Xray = require('../..') var x = Xray() x(html, { title: '.title', image: 'img@src', tags: ['li'] })(console.log)