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

yatsl

v1.3.5

Published

A simple logger utility for typescript with colourful ANSI output.

Readme

YATSL Test Status

(Yet Another TypeScript Logger)

What is this?
A logger utility that should be relatively simple/quick to set up and offers a neat output. It's also not anything fancy, it will not connect to 5 different servers and upload the log to the blockchain or something, but it should be sufficient for debug logging or just in general having an idea what your typescript program is doing.

Why should I use this?
It is a simple library for logging that produces and output with all the necessary information you could want, like log level, timestamp and the line of code that produced the message (can be toggled off for production builds via the config).

Here's an example of what the program might output:
Example of the Logger, it is currently saying "swag yolo"
It should be noted that the library requires ANSI code support for your terminal/command line/thing in order to have the pretty formatting. If you don't, however, you should still be able to get a readable output out of it, it just won't have the colours and formatting.

How do I use it?
There are two main ways of using this library.
One option is using the default object exported by the library, this is handy if all you need is a thing to call every time you want to log something. Setting this up is simple:

import { logger } from "yatsl";
logger.info("Hello World!");

However, if your codebase is larger than a couple scripts, you might want to have a seperate logger object for each file. Luckily, yatsl supports instantiating your own Logger objects like so:

import { Logger } from "yatsl";
let logger = new Logger();
logger.info("Hello World!");

This also allows for a degree of customisation, as you can pass a config object as an argument to the Logger constructor:

import { Logger } from "yatsl";
let logger = new Logger({logLine: false});
logger.info("Hello World!");

Additional information on how to better customise the logger can be found on the wiki.

Wow this thing sucks, it doesn't even support <XYZ>!!
If you want a feature that is currently missing, feel free to make an issue. Alternatively, if you're up for getting down and dirty yourself, you can always implement the feature yourself and make a pull request.