Socket
Socket
Sign inDemoInstall

ak19logger-npm

Package Overview
Dependencies
8
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ak19logger-npm

Colorized logs


Version published
Weekly downloads
2
Maintainers
1
Install size
109 kB
Created
Weekly downloads
 

Readme

Source

Enhanced CLI Logging

Usage

const { LogError, LogWarning, LogSuccess } = require('ak19logger-npm')  // import classes 
const logError = new LogError()             // ERROR Logger Object
const logWarning = new LogWarning()         // WARNING Logger Object
const logSuccess = new LogSuccess()         // SUCCESS Logger Object

//ERROR 
logError.error(new Error('Something bad happened'))

//WARNING
logWarning.warning('This is a custom warning')

//Success
logSuccess.success('Done')

Screenshot

Image

Keywords

FAQs

Last updated on 12 Oct 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc