{"name":"hcat","version":"2.2.2","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@2.2.2","maintainers":[{"name":"kessler","email":"yanivk@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"yaniv","email":"yanivk@gmail.com"}],"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"}],"homepage":"https://github.com/kessler/node-hcat#readme","bugs":{"url":"https://github.com/kessler/node-hcat/issues"},"bin":{"hcat":"hcat.js"},"dist":{"shasum":"f6932116c9993c524d4f8323b42894677d40ffc4","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.2.2.tgz","fileCount":8,"integrity":"sha512-0GwLEAdff/oD0O6Osp2GGbNfkrW0e7L/ra4p+GZA9rAV0yVKToB/SzLBqfaJFg2b2rPuUHHzJSlHglJ+vEWTPA==","signatures":[{"sig":"MEQCIDDqJ2gsm8AwTpP4QMaawLlHa+umrjWw6gI1dfBI+Tc/AiBt8mtUnvsf6dtuTuVzeX84PBN6u9jel8fBxrbQHJpdZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIBbaiPprijkJ3SB2Eq5IDVtglQOXVqeqfuo3/soFJcYVAiEA2uBQI0cL8kjswBJiMWDRPWWFjxioyasNHTDCAHX4tfk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7604,"size":3379,"noattachment":false,"key":"/hcat/-/hcat-2.2.2.tgz"},"main":"index.js","engines":{"node":">=7"},"gitHead":"0ce08129a96b7591a8150d901ec38ffdc9b3195e","scripts":{"test":"cat test.html | node hcat"},"_npmUser":{"name":"kessler","email":"yanivk@gmail.com"},"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":{},"_nodeVersion":"24.5.0","dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hcat_2.2.2_1790792725788_0.7191133549107318","host":"s3://npm-registry-packages-npm-production"},"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":1790792725897,"_cnpm_publish_time":1790792725897,"dist-tags":{"latest":"2.2.3"}}