• Stars
    star
    338
  • Rank 121,948 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A pipe to browser utility

node-bcat

Pipe to the browser utility, Very useful for log tail fun :)

node-bcat features auto scrolling (with enable/disable), ansi to html coloring (--ansi) and behavior and color customization.

This module uses RC to manage its configuration, so in addition to command line arguments you may save your favorite configuration in .bcatrc.

example

> npm install -g bcat

> cat somefile | bcat

// redirect error stream also
> node index.js 2>&1 | bcat

Want to see something moving too?

test.js:

setInterval(function () {
	console.log(1)
}, 1000)

then

> node test.js | bcat

screenshot

usage

 --port                   set a port for this bcat execution
 --contentType            content type header, must be lower case      [default: "text/html"]
 --backgroundColor        (only in text/html)                          [default: "#000000"]
 --foregroundColor        (only in text/html)                          [default: "#ffffff"]
 --tabLength              length of a tab in spaces                    [default: 4]
 --tabReplace             tab replacement                              [default: "    "
 --disableTabReplace      disable tab replacement                      [default: false]
 --newlineReplace         new line replacement                         [default: "<br />"
 --disableNewlineReplace  disable new line replacement                 [default: false]
 --ansi                   show colorful ansi (implies text/html)       [default: true]
 --ansiOptions            override replacement of ansi black color
 --scrollDownInterval     interval to execute javascript scroll down   [default: 1000 (ms)]
 --serverTimeout          http://nodejs.org/api/http.html#http_server_timeout  [default: 0 (no timeout)]
  • An available port between 8080 - 8181 will be automatically picked if --port is not specified
  • ansi feature is on by default

be a good cat

related

catchart - pipe data into charts in your browser

scat - pipes javascript into your browser

hcat - pipes html into your browser

bpipe - bidirectional piping between unix and the browser

browser-run - The easiest way of running code in a browser environment

Inspired by a ruby bcat implementation

More Repositories

1

node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
JavaScript
270
star
2

license-report

create a short report about a project's dependencies (license, url etc)
JavaScript
218
star
3

nw-ninja

A minimalistic NW.js starter project for ninjas
JavaScript
97
star
4

node-loadbalance

A collection of distilled load balancing engines
JavaScript
81
star
5

tempus-fugit

A scheduling and time utilities module that doesn't waste your time
JavaScript
70
star
6

find-port

finds an open port
JavaScript
60
star
7

node-hcat

pipe html into your browser from command line
JavaScript
48
star
8

node-dynamic-middleware

turn a connect/express middleware into a runtime replaceable, deletable middleware
JavaScript
43
star
9

qool

Qool, a leveldb backed Queue
JavaScript
42
star
10

pickpick

An A/B testing engine
JavaScript
37
star
11

catchart

Pipe something from command line to a chart in the browser
JavaScript
34
star
12

node-octofications

github feed as notifications in your desktop
JavaScript
30
star
13

redis-cluster

[DISCONTINUED] a hashring based redis cluster
JavaScript
24
star
14

darkmagic

An experimental opinionated dependency injection module
JavaScript
21
star
15

node-quick-serve

quickly start an http download server and serve a single file or a directory from command line
JavaScript
19
star
16

pluggage

A very slim framework for building pluggable code.
JavaScript
18
star
17

remote-css-select-stream

Quickly run a css selector against a remote page source from a program or cli
JavaScript
17
star
18

redshift-cli

command line for querying and managing a redshift cluster
JavaScript
15
star
19

node-digital-tree

Trie data structure
JavaScript
14
star
20

galaxya

embeddable peer 2 peer service discovery and configuration
JavaScript
13
star
21

node-loadbalance-middleware

A middleware that load balance requests between several other middlewares
JavaScript
12
star
22

node-xn

a distilled engine for creating RPC Servers/Clients
JavaScript
9
star
23

simply-wait

Simply wait for some async things to happen.
JavaScript
8
star
24

blog-automate-nwjs-ui-testing

the code for this: http://blog.yanivkessler.com/2015/03/21/automate-nwjs-ui-testing/ blog post
JavaScript
8
star
25

node-k-pipeline

Executes a bunch of callback styled functions serially
JavaScript
7
star
26

node-json-explorer

explore json objects in your browser
JavaScript
7
star
27

exponential-backoff

Opinionated exponential backoff retry driver
JavaScript
6
star
28

forkraft

a helper library for cluster api
JavaScript
6
star
29

db-stuff

db stuff
JavaScript
5
star
30

cluster-file-writer

write to a single file from all workers in your cluster
JavaScript
5
star
31

websql-sugar

something to make web sql sweeter
JavaScript
4
star
32

node-yalla

A minimalistic logging lib
JavaScript
4
star
33

node-hstacks

Build hierarchies of stacks of middlewares
JavaScript
4
star
34

node-sinopia-leveldb

a leveldb backed auth plugin for sinopia private npm
JavaScript
4
star
35

osx-notify

A osx only bash/applescript that creates a notification when a process is finished
Shell
4
star
36

pickpick-targeting-compiler

compiles targeting expressions to javascript code for pickpick engine
JavaScript
4
star
37

node-assist

a personal AI assistant
JavaScript
4
star
38

node-vhosts

A cli based vhosts server for express/connect apps
JavaScript
4
star
39

id-generator

generate unique ids
JavaScript
4
star
40

pg-schema

create a schema object by querying the metadata tables of postgresql/redshift
JavaScript
4
star
41

insert-sql-generator

create generic sql insert queries from javascript objects
JavaScript
3
star
42

s3shield

a small abstraction over several s3 providers
JavaScript
3
star
43

connect-crypto

some crypto related middlewares for connect
JavaScript
3
star
44

catgraph

pipe graph data to the browser
JavaScript
3
star
45

tokenize

personal tokenize util
JavaScript
3
star
46

node-embedding

JavaScript
3
star
47

fuzzy-math

fuzzy sets, fuzzy numbers, fuzzy fuzzy fuzzy...
JavaScript
3
star
48

serverless-onehook

one hook to rule them all
JavaScript
2
star
49

herbal

duplicate data into several streams
JavaScript
2
star
50

repl

a personal lib for building repls
JavaScript
2
star
51

maxmind-download

download maxmind databases
JavaScript
2
star
52

classgen

JavaScript
2
star
53

node-k-together

Executes a bunch of callback styled functions in parallel
JavaScript
2
star
54

isos

test the current OS // isOs('windows'), isOs('linux')
JavaScript
2
star
55

node-nmg

(my) Node Module Generator
JavaScript
2
star
56

node-async-map-limit

like Promise.all() but with limit on concurrency
JavaScript
1
star
57

monitor-url-tool

simple url monitoring tool
JavaScript
1
star
58

directory-watcher

JavaScript
1
star
59

spawn-child-process-problem

spawn-child-process-problem
JavaScript
1
star
60

schedule-aws-lambda

attach a schedule to an existing aws lambda function
JavaScript
1
star
61

node-command-queue

A command queue
JavaScript
1
star
62

ec2-util

a bunch of ec2 related utilities
JavaScript
1
star
63

digital-chain

A linked list implementation
JavaScript
1
star
64

netee

tee(1) for network traffic. duplicate traffic to several backends, reply from one
JavaScript
1
star
65

node-local-update-server

A tool that creates a local update server
JavaScript
1
star
66

darkmagic-dispel

JavaScript
1
star
67

node-csv-splitter

JavaScript
1
star
68

node-json

JavaScript
1
star
69

emitter-sniffer

takes an event emitter instance and print all events when they are fired
1
star
70

node-file-index

quickly create an in memory index of files and their content
JavaScript
1
star
71

parse-arguments

parse command line style positional and named arguments, eg. `cmd positional --name=foo`
JavaScript
1
star
72

simple-file-writer

write to a file, manage back pressure and buffering
JavaScript
1
star
73

node-search

JavaScript
1
star