Coder Social home page Coder Social logo

cran-cg / notification-logger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hkirat/notification-logger

0.0 2.0 0.0 50 KB

Desktop notification for your console Logs

Home Page: https://hkirat.github.io/notification-logger

HTML 35.53% JavaScript 64.47%

notification-logger's Introduction

Notification Logger npm version

Ever wondered why you have to open the console every time you want to want to log a variable?

Notification Logger helps provide desktop notification for your console messages.

During development, You have to check the browser's inspector periodically to see what your console.log()'s are saying.

With notification-logger, you can develop and debug web apps and see console messages as Desktop Notifications.

And it only adds ~50 lines to your project.

Demo

Screenshot

notification-logger

Installing

  • Use npm or git clone to download the module.
    • npm install notification-logger
    • git clone https://github.com/hkirat/notification-logger.git
  • include notification-logger.js or notification-logger.min.js
  • Initialise with logger.init()

Methods


  • logger.init - Initialises the logger
  • logger.log - Logs the message via a Desktop Notification only
  • console.log - Logs the message via a Desktop Notification and in the browser console
  • logger.destroy - Reverts console.log to original functionality

Browser Support

Works best on latest versions of Google Chrome, Firefox and Safari.

To Do

  • Add Custom Icon to Notifications
  • Unwrap Objects while Logging them as Desktop Notification

notification-logger's People

Contributors

danielmcgraw avatar hkirat avatar ketanhwr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.