Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

console-board

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-board

Display all console output in real html

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

console-board

Display all console output in real html

Check the demo

Introduction

Install

npm i console-board --save-dev

Usage

import { injectRender } from 'console-board'; And Inject somewhere it at your root component {injectRender()} Then the component will be used in development and the console will be patched

Or

You could use import { LogList } from 'console-board' as you want

Exports

LogList the main component which does the patch and displaying all together

  • toggleByTouch default false: Instead of showing the 😂 button, tap three times in a row to display the log pannel
  • showOnInit default false: show log pannel on start
  • showInput default false: show an input that eval the code (type clear to clear the console board)
  • persistentKey default @@console: [TODO] set the key to store the output, set it to null to disable persistence

patchConsole proxy the console and call your custom function before every console call Return a proxied console. Used internally in LogList.

injectRender Helper function to render the LogList only on development

Why

Sometimes the developer console is not available to use, and logging becoming tedious. And some logging options provide plain text output which is not joyful to work with.

Use cases

  • When the page is in a webview where no remote debugging is available
  • When developing React Native apps and turning on remote debugging is too slow
  • When you are tired of the default console output

TODO

  • Proxy console on Chrome and Safari
  • Maintain states
  • React component
  • Accurate output for complex structure
  • Interactive
  • Persistence
  • React Native component
  • Plain JS component

Keywords

FAQs

Package last updated on 24 Aug 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc