New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bonsole

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bonsole

Asynchonize console.log Node.JS data in browsers

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

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

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

Options

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.

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:!

Keywords

console

FAQs

Package last updated on 14 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts