{"id":13394845,"url":"https://github.com/kessler/node-bcat","last_synced_at":"2025-04-07T23:13:32.242Z","repository":{"id":13335450,"uuid":"16022488","full_name":"kessler/node-bcat","owner":"kessler","description":"A pipe to browser utility","archived":false,"fork":false,"pushed_at":"2025-01-31T18:50:26.000Z","size":51,"stargazers_count":342,"open_issues_count":1,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T22:26:42.743Z","etag":null,"topics":["javascript","node-js","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-18T09:16:53.000Z","updated_at":"2025-03-28T08:59:38.000Z","dependencies_parsed_at":"2025-02-16T19:01:40.563Z","dependency_job_id":"8430d7b7-2a55-4fb0-a12c-55ee3b73e33d","html_url":"https://github.com/kessler/node-bcat","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-bcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-bcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-bcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-bcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/node-bcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744335,"owners_count":20988783,"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","node-js","nodejs"],"created_at":"2024-07-30T17:01:33.703Z","updated_at":"2025-04-07T23:13:32.219Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","readme":"# node-bcat\nPipe to the browser utility, Very useful for log tail fun :)\n\nnode-bcat features auto scrolling (with enable/disable), ansi to html coloring (--ansi) and behavior and color customization.\n\nThis module uses [RC](https://github.com/dominictarr/rc) to manage its configuration, so in addition to command line arguments you may save your favorite configuration in .bcatrc. \n\n## example\n```\n\u003e npm install -g bcat\n\n\u003e cat somefile | bcat\n\n// redirect error stream also\n\u003e node index.js 2\u003e\u00261 | bcat\n```\nWant to see something moving too?\n\ntest.js:\n```js\nsetInterval(function () {\n\tconsole.log(1)\n}, 1000)\n```\nthen\n```\n\u003e node test.js | bcat\n```\n![screenshot](https://raw.github.com/kessler/static/master/node-bcat.png)\n\n## usage\n```\n --port                   set a port for this bcat execution\n --contentType            content type header, must be lower case      [default: \"text/html\"]\n --backgroundColor        (only in text/html)                          [default: \"#000000\"]\n --foregroundColor        (only in text/html)                          [default: \"#ffffff\"]\n --tabLength              length of a tab in spaces                    [default: 4]\n --tabReplace             tab replacement                              [default: \"\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\"\n --disableTabReplace      disable tab replacement                      [default: false]\n --newlineReplace         new line replacement                         [default: \"\u003cbr /\u003e\"\n --disableNewlineReplace  disable new line replacement                 [default: false]\n --ansi                   show colorful ansi (implies text/html)       [default: true]\n --ansiOptions            override replacement of ansi black color\n --scrollDownInterval     interval to execute javascript scroll down   [default: 1000 (ms)]\n --serverTimeout          http://nodejs.org/api/http.html#http_server_timeout  [default: 0 (no timeout)]\n```\n- _An available port between 8080 - 8181 will be automatically picked if --port is not specified_\n- _ansi feature is on by default_\n\n![be a good cat](https://raw.github.com/kessler/static/master/bcat.jpg)\n\n## older version\n\nSince 3.0.0 the code base was updated and all dependencies too. The older version is at `bcat@2.0.0`\n\n## related\n[catchart](https://github.com/kessler/catchart) - pipe data into charts in your browser\n\n[scat](https://github.com/hughsk/scat) - pipes javascript into your browser\n\n[hcat](https://github.com/kessler/node-hcat) - pipes html into your browser\n\n[bpipe](https://github.com/Marak/bpipe) - bidirectional piping between unix and the browser\n\n[browser-run](https://github.com/juliangruber/browser-run) - The easiest way of running code in a browser environment\n\nInspired by a ruby [bcat](https://github.com/rtomayko/bcat) implementation\n","funding_links":[],"categories":["JavaScript","Packages","nodejs","包","目录","Command-line apps","Uncategorized"],"sub_categories":["Command-line apps","命令行程序","命令行应用","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-bcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fnode-bcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-bcat/lists"}