{"name":"hcat","version":"2.1.4","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@2.1.4","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":"17ab725ca9ee447805c766f04c3b8720bd095c60","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.1.4.tgz","fileCount":7,"integrity":"sha512-Ynn/X+/1XoAs8kikZ8jEs8tX+6Uutc+vvJmgiEh+/mcylRw/kXqYJjtYOkwOOZJjuMDBbxlTgEZxUZaXIIbXmg==","signatures":[{"sig":"MEUCICjvWAuDACxw5GNJ8Itcw20/GiuSWHUEjmP4ATs6nMEyAiEA3o/w9ezzd6I9trp4Ao49B66p8npxBXhVEaqsF/xRclc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifsHtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3Eg/9Gl3L//61U8przRQjBUTcyoXm/h85I784djoLHCP9eA3JJvWG\r\ngEEWhBcHRQGkRz/O1JCPcSXGC0xhoDdjRMQGTPitItMux3wwGgEAjxVPcnmr\r\nnaQAmYmdgkABhdq+pmk6pfET+RfRKwbQWsptjvrSUEx4SrV26ojI6WA3Qp5T\r\nGyasA/WHxVCv5vFeW0fKutWCs1+4rCcr1QWHsNOssPozJzI6qedDjGGQ4qW+\r\n4MsRwIw1rqew2iRaTAeILhp/VqLDkm7Ee1zipfO5rXkxNh5nZDYWOFYly3c4\r\nu9ExiOXMiqf1b1gxrBouSaVsdi1YIaXMLAhcyWbCa0/bu3KBHpvj2mm+EvNd\r\np2XAnU2Ir++RIlThTLhdPbG1hsdRx7HLcHorwhvgXrYAI6QiN6GpDe6IE8rM\r\n7LdtKCfIZJoVPGghUVBXct9fugJeKnVv0n3908cMMuONulA+QCMBwAUmJXju\r\nUa5XmblzeRFh0jfzSARjUVQmaBb3bATOfqS/MLCqTd0FUF1tiM2FqiWYTD+s\r\nkDb7njJyouHViYpa24wK3x9xgoXzMCmOuCAgIYbutdNs4+5ycoyWKbMPiDWI\r\nEXIx3ok21lH7OA6r0X8cHQPhIjFkjJ05AdHp6zE8wbTASjwREXZEcrunTNic\r\nRb9+I3UiemMnHThMsBnmkrvgMlA7COntNgQ=\r\n=9G+7\r\n-----END PGP SIGNATURE-----\r\n","size":2612,"noattachment":false,"key":"/hcat/-/hcat-2.1.4.tgz"},"main":"index.js","engines":{"node":">=7"},"gitHead":"d5d17c333617e173425a43f8a839727b0b61e04e","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":"8.5.0","description":"pipe html into your browser from command line","directories":{},"_nodeVersion":"16.8.0","dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hcat_2.1.4_1652474349181_0.11881041726557817","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":1652474349395,"_cnpm_publish_time":1652474349395,"dist-tags":{"latest":"2.2.3"}}