# bonsole

> Asynchonize console.log Node.JS data in browsers

Latest version **1.0.3** (published 2019-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install bonsole
pnpm add bonsole
yarn add bonsole
bun add bonsole
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-07-14 |
| First published | 2019-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 268.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Bert Huang |
| Maintainers | bert_huang0324 |
| Keywords | console, log, browser, node, debug |

## Links

- npm: https://www.npmjs.com/package/bonsole
- Repository: https://github.com/Bert0324/bonsole
- Homepage: https://github.com/Bert0324/bonsole#readme
- Issues: https://github.com/Bert0324/bonsole/issues
- npm.io page: https://npm.io/package/bonsole

## Dependencies (4)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [open](https://npm.io/package/open.md) ^6.4.0
- [socket.io](https://npm.io/package/socket.io.md) ^2.2.0
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.2.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-07-14
- 1.0.2 — 2019-07-14
- 1.0.1 — 2019-07-13
- 1.0.0 — 2019-07-13

## README

# Console.log result in the browser

Browsers' console is so powerful and easy to debug compared to node command line. It can also work for Linux, to open on PC in the same LAN.

Besides, it can asynchonizely console.log data from Node.JS in browser base on Socket.IO.

So quickly use bonsole to see console.log results in browser!


## Install

```
npm i --save-dev bonsole
```

## Start

```JavaScript
const bonsole = require('bonsole');
bonsole({a:1});

setTimeout(()=>{
    bonsole({b:2})
}, 5000);
```

## Options

```JavaScript
bonsole(
    {a:1},              //something to console.log in browser
    9094,               //port, default is 9094
    {app: 'firefox'}    //options, set specified browser, like: {app: ['google chrome', '--incognito']}
);
```

The option is the same as [open](https://github.com/sindresorhus/open).

If you have issues or want to make some suggestions, welcome to contact me. It is so kind if you can give a star :star:!

---
_Source: https://npm.io/package/bonsole · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
