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

console-toaster

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-toaster

Toastify your console.logs!

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🍞 console-toaster

Toastify your console.logs!

NPM JavaScript Style Guide

Tiny heads-up display which will show your console.log and console.error messages in toasts on your screen.

In addition, you get a counter of the two in the bottom left. Clicking on either will show you a history of log lines.

Clicking on a log toast itself will launch a google search of that error message.

🚀 Install

npm install --save console-toaster

📋 Usage

import React from 'react'
import Container from 'rest-of-app'
import Toaster from 'console-toaster'

const App = props => {
  render() {
    return (
      <div>
        <Toaster />
        <Container />
      </div>
  }
}

This will get you a little heads up menu on the left, and your console.log() and console.error() calls in toast messages along the right. Don't worry, they'll still show up in your console as well.

Screenshot1

Clicking on either log or error will display the latest log entries

Screenshot2

🗄 Props

<Toaster
  position={'bottom' || 'top'}
  duration={4000}
  destination={`https://google.com/search?q${error}`}
  className={''}
/>

📖 License

MIT

FAQs

Package last updated on 28 May 2020

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