1.0.21 • Published 11 months ago

poplog v1.0.21

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

PopLog - Console Log as Toast Notifications

PopLog is a simple, effective and lightweight JavaScript package that transforms console.log outputs into browser-friendly toast notifications. It makes debugging more interactive by displaying log messages as toasts on the screen, without the need to open developer tools.

Features

  • Converts console.log messages into styled toasts.
  • Simple to use and integrates with any web project.
  • Automatic initialization — no setup required.
  • Works across different environments and browsers.

Installation

Install as a development dependency:

npm install poplog --save-dev

For Project-Level Usage

  1. Download the poplog.js script and include it in your project:

    import 'poplog';
  2. Or, use the following CDN to include it directly in your HTML:

    <script src="https://cdn.example.com/poplog.js"></script>

Usage

Once the script is included, PopLog automatically overrides console.log to show log messages as toasts.

Example:

console.log('This is a toast message!');
console.log('You can log anything, and PopLog will display it as a toast.');

How It Works

  • PopLog listens to calls to console.log and shows each message as a toast at the bottom of the screen.
  • The toast will automatically disappear after 4 seconds.

Customization (Optional)

You can modify the appearance and behavior of the toasts by editing the index.js script in poplog node_modules directory. Customize styles such as background color, duration, and position as needed.

1.0.22

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago