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

@ligelog/pretty

v1.0.0

Published

Pretty-print transport for ligelog — colorized human-readable output for development

Readme

@ligelog/pretty

Colorized, human-readable transport for development. Zero external dependencies — uses raw ANSI escape codes.

Installation

npm install @ligelog/pretty

Quick Start

import { createLogger } from 'ligelog'
import { PrettyTransport } from '@ligelog/pretty'

const logger = createLogger({
  transports: [new PrettyTransport()],
})

logger.info('server started', { port: 3000 })

Output Format

2024-01-15 09:13:20.123 | INFO  | server started  port=3000
2024-01-15 09:13:20.456 | ERROR | app.ts:42:handleRequest - db failed  error=ECONNREFUSED

When combined with @ligelog/caller, caller info is displayed as file:line:function.

API

new PrettyTransport(opts?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | colorize | boolean | auto | ANSI color output (auto-detects TTY and NO_COLOR) | | timestamp | 'iso' \| 'local' \| 'elapsed' | 'local' | Timestamp format | | extraStyle | 'inline' \| 'json' \| 'hide' | 'inline' | Extra field display style | | levelColors | Partial<Record<LevelName, fn>> | built-in | Custom level color functions | | output | NodeJS.WritableStream | process.stdout | Output stream |

Timestamp Formats

  • 'local'2024-01-15 09:13:20.123 (local time)
  • 'iso'2024-01-15T09:13:20.123Z (UTC)
  • 'elapsed'+1.234s (seconds since transport creation)

Extra Field Styles

  • 'inline'key=value pairs appended to the line
  • 'json' — JSON stringified block
  • 'hide' — omit extra fields entirely

Usage with @ligelog/caller

import { createLogger } from 'ligelog'
import { createCallerHook } from '@ligelog/caller'
import { PrettyTransport } from '@ligelog/pretty'

const logger = createLogger({
  transports: [new PrettyTransport()],
})
logger.use(createCallerHook())

License

MIT