mercury-parser/read
2016-09-07 13:56:57 -04:00

10 lines
249 B
JavaScript
Executable File

#!/usr/bin/env node
var fs = require('fs')
var Iris = require('./dist/bundle')
var url = process.argv[2]
var html = fs.readFileSync('../file.html', 'utf8')
var result = Iris.parse(url, html).then(function(result) {
console.log(result.content)
})