mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-17 03:25:31 +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)
|
|
})
|