Pipe html into your browser from command line
You should take a look at scat which pipes javascript into your browser or bcat for a more log piping oriented module
npm install -g hcat
echo '<hr>' | hcat
--port set a port for this hcat execution, defaults to 0 (random port)
--hostname set the hostname for this hcat execution, defaults to localhost
--contentType set the content type header for this hcat execution, defaults to text/html
--contentSecurityPolicy set the content security policy header for this hcat execution, will not be added if not specified
npm install --save hcat
consthcat=require('hcat')constfs=require('fs')// config is optionalhcat(fs.createReadStream('foo.html'),{port: 8080})// string or buffer instead of streamhcat('<h1>test 123</h1>',{port: 8080})Many thanks to all the contributors