mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-18 21:28:22 +00:00
10 lines
249 B
JavaScript
Executable File
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)
|
|
})
|