{"_id":"hcat@2.2.3","bin":{"hcat":"hcat.js"},"bugs":{"url":"https://github.com/kessler/node-hcat/issues"},"dist":{"shasum":"89367c16c38563572b23c1bfbf4b5bed88e7ab07","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.2.3.tgz","fileCount":8,"integrity":"sha512-IMoPCbQ7M54PhPrl22lzL3SOtbMT1FUngx+2qE8Wahx7uCi/FD/lh6fy3dkJPPcUD5++nRT22w4T4JkO8wq8cg==","signatures":[{"sig":"MEUCIHDO6N3Js2px1l5+NS6q8OsSlu0x5prHKzd48XQJPfe/AiEAl+rwhcInBxagCx6+SGTYO/6FINfFfTWDLdgHj3IIgJ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHgu1Ss8xGhakzOi0eiQaVmyuMruzpND4g/IUdspss3DAiBdfU7k626cRDxHd6X9jpY/4ZGABq5SmDY9HEgTUnilVg=="}],"unpackedSize":7793,"size":3464,"noattachment":false,"key":"/hcat/-/hcat-2.2.3.tgz"},"main":"index.js","name":"hcat","author":{"name":"Yaniv Kessler"},"engines":{"node":">=7"},"gitHead":"3c0e1fc12edc5e49ae52f07598c89ef2d8fd7cd5","license":"MIT","scripts":{"test":"cat test.html | node hcat"},"version":"2.2.3","_npmUser":{"name":"kessler","email":"yanivk@gmail.com"},"homepage":"https://github.com/kessler/node-hcat#readme","keywords":["browser","cat","hcat","pipe"],"repository":{"url":"git+https://github.com/kessler/node-hcat.git","type":"git"},"_npmVersion":"11.16.0","description":"pipe html into your browser from command line","directories":{},"maintainers":[{"name":"kessler","email":"yanivk@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"yaniv","email":"yanivk@gmail.com"}],"_nodeVersion":"24.5.0","contributors":[{"url":"https://github.com/noffle","name":"Stephen Whitmore"},{"url":"https://github.com/kessler","name":"Yaniv Kessler"},{"url":"https://github.com/aviramst","name":"aviramst"},{"url":"https://github.com/mscdex","name":"Brian White"}],"dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hcat_2.2.3_1790809411766_0.5377160735360687"},"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":1790809411843,"_cnpm_publish_time":1790809411843,"dist-tags":{"latest":"2.2.3"}}