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

@done-coding/cli-utils

v0.9.0

Published

cli utils

Readme

@done-coding/cli-utils

CLI 通用工具库 - 为 done-coding CLI 生态系统提供基础工具函数

npm version License: MIT

安装

npm install @done-coding/cli-utils
# 或
pnpm add @done-coding/cli-utils

快速开始

# 作为依赖库使用,不提供独立的 CLI 命令

功能特性

  • 基础工具: 提供通用的 CLI 工具函数
  • 🔧 类型定义: 统一的 TypeScript 类型定义
  • 📝 配置处理: 配置文件读取和处理工具
  • 🎨 命令行美化: 基于 chalk 的命令行输出美化
  • 🔄 数据处理: 基于 lodash 的数据操作工具

API 文档

本包是一个工具库,不提供独立的 CLI 命令,主要为其他 done-coding CLI 包提供基础功能。

主要依赖

  • chalk: 命令行输出美化
  • json5: JSON5 格式支持
  • lodash: 数据操作工具函数
  • prompts: 交互式命令行提示
  • semver: 版本号处理
  • uuid: UUID 生成
  • yargs: 命令行参数解析

使用示例

作为依赖使用

import {} from /* 具体导出内容 */ "@done-coding/cli-utils";

// 具体使用方法需要查看包的导出内容

编程接口

本包提供了编程接口,具体的导出内容请查看包的类型定义文件。

包依赖关系

被其他包依赖

@done-coding/cli-utils 是基础工具库,被以下包依赖:

  • @done-coding/cli - 主 CLI 工具
  • @done-coding/cli-component - 组件生成工具
  • @done-coding/cli-config - 工程配置工具
  • @done-coding/cli-extract - 信息提取工具
  • @done-coding/cli-git - Git 操作工具
  • @done-coding/cli-inject - 信息注入工具
  • @done-coding/cli-publish - 项目发布工具
  • @done-coding/cli-template - 模板处理工具
  • create-done-coding - 项目创建工具

贡献指南

我们欢迎贡献!请遵循以下步骤:

  1. Fork 本仓库
  2. 创建功能分支:git checkout -b feature/amazing-feature
  3. 提交更改:git commit -m "feat: add amazing feature"
  4. 推送分支:git push origin feature/amazing-feature
  5. 创建 Pull Request

开发环境设置

# 克隆仓库
git clone https://github.com/done-coding/done-coding-cli.git
cd done-coding-cli/packages/utils

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建
pnpm build

许可证

MIT © done-coding

相关链接