{"name":"hcat","version":"1.1.1","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@1.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"},{"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":"index.js"},"dist":{"shasum":"4b888ce39cb0f0b240e8e28084fe09d908fcc593","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-1.1.1.tgz","integrity":"sha512-eyyV+e6LDzawu3eWXgcRzuKqkl4FhYN28CuLPO1euZZuF2KJKJ+oK1UfNDBNVRK5fMtrwIegD8PzyJ0xC5V3qQ==","signatures":[{"sig":"MEUCIQDud8GBK6RqAQtwugGtqhixEmHCYcR/Wxzai5xfLHap4wIgIdVvM6PGQzMuA8RnDy+GTplVd/tt/5chrkTkCeb5OU0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2220,"noattachment":false,"key":"/hcat/-/hcat-1.1.1.tgz"},"main":"index.js","_from":".","_shasum":"4b888ce39cb0f0b240e8e28084fe09d908fcc593","gitHead":"a0d2f119813f3bd54375050a339e8f8e11a39eb6","scripts":{"test":"mocha"},"_npmUser":{"name":"kessler","email":"yanivk@gmail.com"},"repository":{"url":"git+https://github.com/kessler/node-hcat.git","type":"git"},"_npmVersion":"4.2.0","description":"pipe html into your browser from command line","directories":{},"_nodeVersion":"7.10.0","dependencies":{"rc":"~0.3.3","opn":"^3.0.2","text-table":"~0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/hcat-1.1.1.tgz_1502275445261_0.769860373577103","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":1502275446241,"_cnpm_publish_time":1502275446241,"dist-tags":{"latest":"2.2.3"}}