Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bert0324/bonsole
Synchonize console.log Node.JS data in browsers
https://github.com/bert0324/bonsole
javasc nodejs
Last synced: about 2 months ago
JSON representation
Synchonize console.log Node.JS data in browsers
- Host: GitHub
- URL: https://github.com/bert0324/bonsole
- Owner: Bert0324
- License: mit
- Created: 2019-07-13T23:20:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-23T16:42:29.000Z (about 2 years ago)
- Last Synced: 2024-10-06T09:09:38.314Z (3 months ago)
- Topics: javasc, nodejs
- Language: JavaScript
- Homepage:
- Size: 593 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 Synchonizely 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:!