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

it-cmd

v1.0.12

Published

cmd tools

Downloads

72

Readme

cmd xtools

node.js 开发常用的命令行工具,日常使用。

实现功能

  • [x] 开启静态服务
  • [x] 实现自定义代理
  • [x] md5
  • [x] 常用时间转换:tool time
  • [x] cal 日历
  • [x] say命令
  • [ ] 读书工具
  • [x] 翻译-有道
    • [x] 记录到本地,避免重复请求
    • [x] 从本地数据库获取翻译
    • [x] 记录到本地json 文件
    • [ ] 记录到本地数据库,MySQL 获取其他数据库
    • [ ] 请求日志:word,created
    • [ ] 提供一个页面,提供维护页面
  • [ ] socke.io 测试页面
  • [ ] 简单的http模块
  • [ ] 图片压缩
  • [ ] json 转换(非标准的转换为标准)
  • [x] AI Ask 助手
  • [x] git 稀疏克隆 下载指定目录
  • [x] git 完整克隆 - 下载完整仓库
  • [x] 将代码改成 module 模式 重构
  • [ ] 将代码使用 typescript 重构
  • [ ] skill 下载
  • [ ] 是否要集成 python 相关脚本
  • [ ] 校验网络,测试网速?
  • [ ] github 代码加速下载
  • [ ] 开发环境,下载并安装,并统一配置。先从配置入手。
  • [x] 实现命令行的 markdown 查看器
  • [x] 实现命令行使用浏览器方式打开 markdown文件
  • [x] 清理当前目录下所有的 node_modules 目录
  • [ ] 实现目录下文件查询:类似 find 或者 rg 命令

使用

x-tool
$ node bin/git-clone.js https://gitee.com/yanxxit/conf.git
node bin/git-clone.js https://github.com/yanxxit/conf.git conf2
node bin/git-clone.js https://github.com/yanxxit/node-module-study.git

git clone https://github.com/yanxxit/node-module-study.git

新增功能:Git Clone

使用 x-git-clone 命令克隆 Git 仓库:

# 基本用法
x-git-clone <repository-url> [destination]

# 示例
x-git-clone https://github.com/user/repo.git
x-git-clone [email protected]:user/repo.git
x-git-clone user/repo  # GitHub 简写格式

# 克隆特定分支
x-git-clone <repository-url> -b <branch-name>

# 创建浅克隆(只克隆最近的提交)
x-git-clone <repository-url> --depth 1

# 克隆单一分支
x-git-clone <repository-url> --single-branch

本地开发

npm link

接下来剩下的就是测试了,对于测试来说不需要把安装包推到npm中,npm为了方便,提供了npm link命令,可以实现预发布。在项目根目录中使用npm link没有报错的话,就说明推送成功了。现在就可以在全局中使用q-init了。

在全局中使用initP -h命令,能够输出所编译的help信息就说明可以初始化项目了。