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

node_echocolor

v1.0.4

Published

输出彩色的文字

Readme

在命令行输出颜色

使用形式如

const {color} = require('node_echocolor')
console.log(color().add('red').echo('123'))
console.log(color().add(['lightGreenBG', 'red']).echo('h'));

可以使用预设颜色 add 可以使用的参数

| 参数 值 | 效果 | | ---------------- | ------------ | | 'bright' | 亮色 | | 'grey' | 灰色 | | 'italic' | 斜体 | | 字体样式 | | 'underline' | 下划线 | | 'blink' | 闪烁 | | 'reverse' | 反向 | | 'hidden' | 隐藏 | | 字体颜色 | | 'black' | 黑色 | | 'red' | 红色 | | 'green' | 绿色 | | 'yellow' | 黄色 | | 'blue' | 蓝色 | | 'magenta' | 品红 | | 'cyan' | 青色 | | 'lightGray' | '[37m' | | 'darkGray' | '[90m' | | 'lightRed' | '[91m' | | 'lightGreen' | '[92m' | | 'lightYello' | '[93m' | | 'lightBlue' | '[94m' | | 'lightMagenta' | '[95m' | | 'lightCyan' | '[96m' | | 背景色 | | 'blackBG' | 背景色为黑色 | | 'redBG' | 背景色为红色 | | 'greenBG' | 背景色为绿色 | | 'yellowBG' | 背景色为黄色 | | 'blueBG' | 背景色为蓝色 | | 'magentaBG' | 背景色为品红 | | 'cyanBG' | 背景色为青色 | | 'lightGrayBG' | '[47m' | | 'darkGrayBG' | '[100m' | | 'lightRedBG' | '[101m' | | 'lightGreenBG' | '[102m' | | 'lightYelloBG' | '[103m' | | 'lightBlueBG' | '[104m' | | 'lightMagentaBG' | '[105m' | | 'lightCyanBG' | '[106m' |

使用数字 也可以使用 88/256 Colors 编码颜色 参考地址 颜色编码 github