百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bcat

> 编程语言
开源

一个到浏览器的工具

508 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个到浏览器的工具

bcat http://github.com/rtomayko/bcat git clone git://github.com/rtomayko/bcat.git gem install bcat

NOTE: This repository is archived and no longer actively maintained by @rtomayko as of 2017-11-08.

bcat is a pipe to browser utility for use at the shell and within editors like Vim or Emacs. It reads from standard input, or one or more files, and streams output to a browser window:

$ echo "hi mom" |bcat
$ echo "hi mom" |bcat -T 'Important Message'
$ echo "hi mom" |bcat -b chrome

Plain text is converted to simple preformatted HTML with rudimentary support for ANSI/VT100 escape sequences (color, background, bold, underline, etc.)

You can also pipe HTML into bcat, in which case input is written through to the browser unmodified:

$ echo "

hi mom " |bcat $ echo "hi mom" |markdown |bcat

Output is displayed progressively as it's being read, making bcat especially useful with build tools or even commands like tail(1) that generate output over longer periods of time:

$ make all  |bcat
$ rake test |bcat
$ tail -f /var/log/syslog |bcat
$ (while printf .; do sleep 1; done) |bcat

See the bcat(1) EXAMPLES section for more on using bcat from the shell or within editors like Vim:

bcat was inspired by TextMate's HTML output capabilities and a desire to have them at the shell and also within editors like Vim or Emacs. See:

Only a small portion of TextMate's HTML output features are currently supported, although more will be added in the future (like hyperlinking file:line references and injecting CSS/JavaScript).

See the INSTALLING, COPYING, and CONTRIBUTING files for more information on those things.

Copyright (c) 2010 by Ryan Tomayko

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言