{"name":"hcat","version":"2.1.1","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@2.1.1","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"kessler","email":"yanivk@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":"f11674df276e58b13540e485c5216a0aaab224b7","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.1.1.tgz","fileCount":7,"integrity":"sha512-aYyjCKC33pzwh9r6IKpL5w4NHqFQLd8X7t38UkoWonQwtR0G5VDNr0100AdpNxxpPlVR2E83vNQYgd5ifKSBFg==","signatures":[{"sig":"MEUCIQCC237DxTQYOURjq4O72RH9q75sFL61bcJS90qBs//L6QIgbI+vwlVvEMsjQfygbD2pSgYd3jZxNl6TeYrlwvFCkVw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFnkTCRA9TVsSAnZWagAALpIP/1ui6I3EKS2sllqk35OG\naAZXcql2KXGv5X8uxtUv06QgLKo0LTrDdJyiLKYY7wzeq6zUXMtVQuiPjZi0\nzNCz8zsBFI+QHgBh8rU1jpYCYnynxUB9diVFUhBWKlv7XWiNVzxwaG+HHB5I\nl5yXrCq7Em2B+LeAXbfsJzWzO4IxWCOgsrXD8j50+9k0rR9eMJ/DWj8lWGrj\nuOHMekLWQ11U97fA/sKiJcX6haIHbdytJCu76+RNP2MxSK8WF3iIvGZSHdvw\nKmKD9aHRB0GcUzwie9AZDq5EFmX0yO4m4xDAYsj5z9Wu5w+2xESsq/oNiE/J\nw/ZHFUoX+sIxO1SoWUyaMqUpnmmcmMyGPD1nCdI/QJCRwk+YHAds4fERZ7YP\nn+iF3dLZaftynAc4QR7tIWtnjPiH+5eaqvuJAI/lYiE8zm2HfIq1ozJCWcnR\nOUUdmnbEV1E0NlXwO43D3zr8ijDzO15l/faTCxiBpQ+SGf2z4bBNPcDZWMSg\nXLliKdL6SB5Nhp0saLwnR/t9vx8hUTjrS58exh+R1ZvfJDEyrFVSnZUnwWP1\nbrxQlZsYTvMpypPornIp6+eFpZTPhXDvC6cUMlCAmIKW1qQ7s+lHqhqW29nD\nRIrQSoV4uoYSsmgDyJlKbiuyVpinCf7QY9WxKrQ2hGAXprd5Yf/5R01gEDpP\nmhjD\r\n=3UlE\r\n-----END PGP SIGNATURE-----\r\n","size":2633,"noattachment":false,"key":"/hcat/-/hcat-2.1.1.tgz"},"main":"index.js","engines":{"node":">=7"},"gitHead":"05165228a36590e784a04777562f062192ea63c8","scripts":{"test":"mocha"},"_npmUser":{"name":"kessler","email":"yanivk@gmail.com"},"repository":{"url":"git+https://github.com/kessler/node-hcat.git","type":"git"},"_npmVersion":"6.4.1","description":"pipe html into your browser from command line","directories":{},"_nodeVersion":"11.3.0","dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hcat_2.1.1_1544976658722_0.7428717202351822","host":"s3://npm-registry-packages"},"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":1544976658882,"_cnpm_publish_time":1544976658882,"dist-tags":{"latest":"2.2.3"}}