{"id":13583210,"url":"https://github.com/kessler/node-hcat","last_synced_at":"2025-03-17T02:31:10.649Z","repository":{"id":16208290,"uuid":"18955192","full_name":"kessler/node-hcat","owner":"kessler","description":"pipe html into your browser from command line","archived":false,"fork":false,"pushed_at":"2022-05-13T20:39:49.000Z","size":29,"stargazers_count":49,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-08T08:12:40.385Z","etag":null,"topics":["javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jarektkaczyk/hookable","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kessler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-20T01:48:43.000Z","updated_at":"2025-02-09T01:39:40.000Z","dependencies_parsed_at":"2022-07-21T06:47:23.134Z","dependency_job_id":null,"html_url":"https://github.com/kessler/node-hcat","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-hcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-hcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-hcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-hcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/node-hcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243837011,"owners_count":20355813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs"],"created_at":"2024-08-01T15:03:19.737Z","updated_at":"2025-03-17T02:31:10.256Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"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 '\u003chr\u003e' | 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```\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('\u003ch1\u003etest 123\u003c/h1\u003e', { port: 8080 })\n```\n\nMany thanks to all the contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-hcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fnode-hcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-hcat/lists"}