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

xlogs

v0.1.0

Published

![npm version](https://img.shields.io/npm/v/xlogs) ![license](https://img.shields.io/npm/l/xlogs) ![size](https://img.shields.io/bundlephobia/minzip/xlogs)

Readme

xlogs - 增强型控制台日志工具

npm version license size

✨ 特性亮点

丰富的日志样式

  • 🎨 多彩气泡 - 支持左右气泡对话样式
  • 🌦️ 天气主题 - 晴天/雨天/多云三种天气图标
  • 🖼️ ASCII艺术 - 提供方框/云朵/波浪三种边框
  • 🏷️ 3D文字 - 支持阴影/霓虹/轮廓三种特效

🚀 快速开始

安装

npm install xlogs
# 或
yarn add xlogs

使用示例

import { xlogs } from 'xlogs';

// 气泡对话
xlogs.bubble('Hello!', 'bot');
xlogs.bubble('Hi there!', 'user');

// 天气主题
xlogs.weather('sunny', 'Nice weather today!');
xlogs.weather('rainy', 'Remember your umbrella');

// ASCII艺术
xlogs.ascii('Important', 'box');
xlogs.ascii('Warning', 'cloud');

// 3D文字
xlogs.banner('XLOGS', 'neon');

📚 API文档

主要方法

bubble(message: string, type: 'user' | 'bot')

功能:显示聊天气泡样式
参数

  • message: 要显示的消息内容
  • type: 气泡类型,user(用户)或bot(机器人)
    示例
xlogs.bubble('你好!', 'bot');
xlogs.bubble('我收到了', 'user');

weather(weather: 'sunny' | 'rainy' | 'cloudy', message: string)

功能:显示天气主题样式 参数

  • weather: 天气类型,sunny(晴天)、rainy(雨天)或cloudy(多云)
  • message: 要显示的消息内容 示例
xlogs.weather('sunny', '今天天气很好!');
xlogs.weather('rainy', '记得带伞'); 

ascii(message: string, type: 'box' | 'cloud' | 'wave')

功能:显示ASCII艺术样式 参数

  • message: 要显示的消息内容
  • type: 边框类型,box(方框)、cloud(云朵)或wave(波浪) 示例
xlogs.ascii('重要', 'box');
xlogs.ascii('警告', 'cloud');

banner(message: string, type: 'shadow' | 'neon' | 'outline')

功能:显示3D文字样式 参数

  • message: 要显示的消息内容
  • type: 特效类型,shadow(阴影)、neon(霓虹)或outline(轮廓) 示例
xlogs.banner('XLOGS', 'neon');