Skip to content

Instantly share code, notes, and snippets.

@NHQ NHQ/trumpet.js
Last active Aug 29, 2015

Embed
What would you like to do?
var fs = require('fs');
var trumpet = require('trumpet')();
var el = trumpet.select('meta#id')
el.setAttribute('content', id)
var stream = el.createWriteStream();
var html = fs.createReadStream(projectRoot+ '/www/index.html')
html.pipe(trumpet).pipe(process.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.