npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@horizoncode/eazylog

v1.0.9

Published

easy to use logging utility

Downloads

64

Readme

eazylog

a easy to use logging library

Preview Image

Preview

How to use it

Import package from npm

npm i @horizoncode/eazylog

Create a logger

const Logger = require('@horizoncode/eazylog')
const logger = new Logger("My Project") // the String equals your Project name etc.

Change color

You can easily change the color

logger.log("[red]i am red! [blue]now i am blue daba di daba die")
Available text colors are:
  • black
  • red
  • green
  • yellow
  • blue
  • cyan
  • magenta
  • white
  • gray
  • grey
  • blackBright
  • redBright
  • greenBright
  • yellowBright
  • blueBright
  • cyanBright
  • magentaBright
  • whiteBright
Available background colors are:
  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgCyan
  • bgMagenta
  • bgWhite
  • bgGray
  • bgGrey
  • bgBlackBright
  • bgRedBright
  • bgGreenBright
  • bgYellowBright
  • bgBlueBright
  • bgCyanBright
  • bgMagentaBright
  • bgWhiteBright
Available font styles are:
  • bold
  • dim
  • italic
  • underline
  • overline
  • inverse
  • hidden
  • strikethrough
To reset everything use:
  • reset

set Timestamp format

Update the default timestamp(yyyy-MM-dd HH:mm:ss) to your own format

logget.setDateTimeFormat("HH:mm:ss");

Debug

You can toggle the Debug mode by a simple function

logger.setDebug(true/false);

logger.log("[purple][italic]This is a Debug message", 'DEBUG') // This will only print if debug mode is acitve

Traces

You don't know where the log comes from? add a stack trace!

logger.logTraced("This text got sent with a trace") // => This text got sent with a trace |-> /home/eazylog/project/index.js:10:12

File Logging

It's very easy to log to a file

const path = require('path');
log.startFileLogging(path.join(__dirname, 'logfile.txt'));

The logger will write into that defined logfile until the stopFileLogging() function is called

log.stopFileLogging();

Example

You want to print different states of logs.

const Logger = require('@horizoncode/eazylog')
const logger = new Logger("Example")

logger.log("This is a Info message", 'INFO')
logger.log("This is a Warning message", 'WARNING')
logger.log("This is a Error message", 'ERROR')
logger.log("This is a Debug message", 'DEBUG')

//You can even define custom LogTypes, and use colors here.
logger.log("This is a help message", 'HELP')
logger.log("the logtype of this help message is yellow :o", '[yellow]YELLOW_HELP')