mkdom
v1.1.1
Published
isomorphic html → dom
Downloads
33
Maintainers
Readme
mkdom
isomorphic html → dom
install
npm install michaelrhodes/mkdom#1.1.1
use
var fs = require('fs')
var mkdom = require('mkdom')
var html = fs.readFileSync('./templates/readme.html')
var page = mkdom(html)
page.querySelector('h1').textContent = 'mkdom'
page.querySelector('p').textContent = 'mkdom converts pl…'
process.stdout.write(page.outerHTML)