{"name":"hcat","version":"0.0.2","keywords":["pipe","browser","cat","hcat"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@0.0.2","maintainers":[{"name":"yaniv","email":"yanivk@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/kessler/node-hcat","bugs":{"url":"https://github.com/kessler/node-hcat/issues"},"bin":{"hcat":"index.js"},"dist":{"shasum":"d3d136c901765081714f777ea29659fab10573a6","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-0.0.2.tgz","integrity":"sha512-rJVLxd77MDSeoVf2IYJazwHXASWR9SoyPpdljocHemPWaIJ8nmztY0Zkd1MnHUpwZY8mha11Us/M23iAFW23WQ==","signatures":[{"sig":"MEUCIQDuYOeuvKpGr6+umgkJLlkUfS/uBv+avMAGWUhiSMs5+wIgY1ObjIXNJ+yDndDbtYJWN54suIDjPs2PvxSNfA2hsc8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2132,"noattachment":false,"key":"/hcat/-/hcat-0.0.2.tgz"},"main":"index.js","_from":".","scripts":{"test":"mocha"},"_npmUser":{"name":"yaniv","email":"yanivk@gmail.com"},"repository":{"url":"https://github.com/kessler/node-hcat","type":"git"},"_npmVersion":"1.4.3","description":"pipe html into your browser from command line","directories":{},"dependencies":{"rc":"~0.3.3","optimist":"~0.6.0","find-port":"1.0.0","text-table":"~0.2.0"},"readme":"# hcat\nPipe html into your browser from command line\n\nYou should take a look at [scat](https://github.com/hughsk/scat) which pipes javascript into your browser or [bcat](https://github.com/kessler/node-bcat) for a more log piping oriented module\n\n## CLI tool\n```\nnpm install -g hcat\necho '<hr>' | hcat\n```\n\n### command line parameters\n\n```\n--port              set a port for this hcat execution, defaults to 0 (random port)\n--hostname     set the hostname for this hcat execution, defaults to localhost\n--contentType  set the content type header for this hcat execution, defaults to text/html\n--contentSecurityPolicy set the content security policy header for this hcat execution, will not be added if not specified\n--serveOnce    serve a single request and exit, defaults to true. open connections (keep-alive, extra requests such as /favicon.ico) are closed once the response is sent\n```\n\n## API\n\n```\nnpm install --save hcat\n```\n\n```js\nconst hcat = require('hcat')\nconst fs = require('fs')\n\n// config is optional\nhcat(fs.createReadStream('foo.html'), { port: 8080 })\n\n// string or buffer instead of stream\nhcat('<h1>test 123</h1>', { port: 8080 })\n```\n\nMany thanks to all the contributors\n","publish_time":1398606972337,"_cnpm_publish_time":1398606972337,"dist-tags":{"latest":"2.2.3"}}