{"name":"hcat","version":"2.1.2","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@2.1.2","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":"8bc375455151cf1eeff19c56f88eab696cfbf358","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.1.2.tgz","fileCount":7,"integrity":"sha512-svvJdDPNL/1x2NtSQYhTOt2Iv4FjByBduSuJY2ozoflqJh2Jrb63m6GoaN6ikKO6Vn3G1Xbk+ByRPmEi99TxAQ==","signatures":[{"sig":"MEUCIE+0HsvYB0uryZTB854qLdBKc43UPY6urX5YWLnuPdQiAiEAlRkDRCOmUYK6Med4Dd5GS1i4KLf6LdAKU7aCh/wZ7hg=","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\nwsFcBAEBCAAQBQJepDHrCRA9TVsSAnZWagAA7FwP/ifs5uHRgPazpYNdUMhq\n/dFEa5Pl0Un39jQ4hlz1AFxxVvBMCSxqKBMg+wnrf7C7Mz18xfvIRnC+hsrw\nq2ByUnasQ7ndCxOPRX0g7HegIBOFs+pt99K49rKVfWFfkmYEt3SXoNidSEJR\n9B4BKg9FFMf/BpZgqsK2DJD2fFjnsIdOyiXjzA/MvOQI3JwDylvfVbN0Ya/L\nDRT4Q8Rn6FGXdLPIo664U8xaoIeMX7IDpg6fyYbEf+wuPU3y6BmJJ/DFILqS\nWalZm9+Uw3MdFEZpn21YBl2bJzNjBGCqy97g7AFS7q3XKC7dSOwvWipKl+Af\nntFlMjTJvcMctRVwelkAEGXJXBMuHHvqEdJ8hehV3+0gOCeXSSEL7wYT4gK9\nWicjys5gi6lpnRrm9qORDoYTqduGFp03RMOt8bwiK/Q5U78dWTOVaPBSyVLt\nPI2XiaptkZ2JyqzMlcbc6z2Ys0f0LvlpPXAW7cOdEtg7dr49O5FuxZKcmvNO\n7cuLxJXjh/dp4P2zjLxT8WdVQiNdyVONarK3r2iTi1m4YkTvATAqKsna3aXA\npRrDVv4oS8P06ySL1JyCpxJKZuOySYnH7O9G6vfzfpzkUnkDPnF3c5mnLb/L\nq4GPP7VVxbGpcBU68xR/bj3AaRT7TXxgDLd865LxV+epBUeXUjSdQSI5uZMI\n9MVP\r\n=PI1T\r\n-----END PGP SIGNATURE-----\r\n","size":2630,"noattachment":false,"key":"/hcat/-/hcat-2.1.2.tgz"},"main":"index.js","engines":{"node":">=7"},"gitHead":"917837e7ed0b88655e9360291f21927eb63f33da","scripts":{"test":"mocha"},"_npmUser":{"name":"kessler","email":"yanivk@gmail.com"},"repository":{"url":"git+https://github.com/kessler/node-hcat.git","type":"git"},"_npmVersion":"6.9.0","description":"pipe html into your browser from command line","directories":{},"_nodeVersion":"13.13.0","dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hcat_2.1.2_1587818986512_0.7817748983186568","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":1587818986714,"_cnpm_publish_time":1587818986714,"dist-tags":{"latest":"2.2.3"}}