{"name":"hcat","version":"2.1.3","keywords":["browser","cat","hcat","pipe"],"author":{"name":"Yaniv Kessler"},"license":"MIT","_id":"hcat@2.1.3","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":"b26d154e444b8529c78f47e8908128ae020f8bd6","tarball":"http://registry-npm.ywwl.com/hcat/download/hcat-2.1.3.tgz","fileCount":7,"integrity":"sha512-s4b57LGQ9XDZCHVXlUEZSR2L2eTIBkZP2C6v9pqb8akDNH1bVXyUZtBcx97k3r99uqdIIhKyo14Ei3Zchj3kzg==","signatures":[{"sig":"MEUCIHrf40gDccTMO7JJa8RnRxv3IcKGZF3iz5ZFss2wV5zlAiEAiEe94ROuCA5t7sGEwqX7Tom2K2g7hrvX+QngTVyYrmY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGSRSCRA9TVsSAnZWagAA1wIQAJr3Hp9NQcZEk52pcLA9\nevWAOZFPRFjoaDqMSLqL/x9liICVwEbjK7SAPijBfl/Mi9jZNHcp6PRFcxpQ\nheBwzWRaAW7z5pGXWi9NbBVg9BepIcPzmwqrXDSqjkZ3Sgi23Gdo66HTlehK\nK00OchQx7mrUGF/EbgiODQNH/lJxV4pCExUnckvnTQV6yBkXsZCP7uDJntLw\n2HQ6T4cvE9hqJIljfSPjxLhIFzD7BBhMnaXgaR7oaz7/3phZn/EpBv2QQbC7\nrLpT5i/IQzliy6nSj36UUvaYPeX0l4DPT8PWZhmghcHhU/Rlx6Ulxcb3P31i\nz0ZUZ7SbchuKverVGu0icnTavRHh58yyjzLIuUwzjjs3fudemeHbeEwZ0+ch\nkB3bnGg89LWOhuhYNCWV8I2ML4Ku/AM+i6rb6h4jHwzBLdaKLc4ooN0yA2xv\na11qWjC4TpG1KoclcibE7iVDVhrO327ekkfk2fwO5r1/kAkcarwlNidq5Xw7\njW3FdhcPXym8cpcqB//Kr7v0RELzTMbAaZJU1D4hLdrnS2Yf5+5cL4Hm25G/\nHUV3W4pQfxo6OR1km6JH3vXEEHdhbPMpsNKr27tgq9znNtK3K3FsoQprFw2F\nRVQxT2+xBcrTmigQujmA6mvNIgmJb6l1E6sZ+UC/XwL6rARkLSAQhJEVbdV6\nnq/7\r\n=YM7t\r\n-----END PGP SIGNATURE-----\r\n","size":2638,"noattachment":false,"key":"/hcat/-/hcat-2.1.3.tgz"},"main":"index.js","engines":{"node":">=7"},"gitHead":"4e1336436f0509f84c52d39ea8b54b9fb921e311","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":"7.0.3","description":"pipe html into your browser from command line","directories":{},"_nodeVersion":"15.0.1","dependencies":{"rc":"^1.2.8","opn":"^5.1.0","text-table":"~0.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hcat_2.1.3_1612260434424_0.4123218135012965","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":1612260434526,"_cnpm_publish_time":1612260434526,"dist-tags":{"latest":"2.2.3"}}