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 🙏

© 2025 – Pkg Stats / Ryan Hefner

alpenl-cli

v0.0.3

Published

基于 Gluegun 框架构建的现代化 TypeScript 命令行工具

Readme

alpenl-cli

一个基于 Gluegun 框架构建的现代化 TypeScript 命令行工具。

✨ 特性

  • 🚀 基于 TypeScript 开发,类型安全
  • 📦 模块化架构,易于扩展
  • 🎨 支持模板代码生成
  • 🔌 插件系统支持

📦 安装

全局安装(推荐)

# 使用 npm
npm install -g alpenl-cli

# 使用 yarn
yarn global add alpenl-cli

# 使用 pnpm
pnpm add -g alpenl-cli

验证安装

alpenl --version
alpenl --help

🚀 使用方法

基础命令

# 查看帮助
alpenl --help

# 查看版本
alpenl --version

# 打印消息
alpenl print

# 生成文件(使用模板)
alpenl generate <name>
# 或使用别名
alpenl g <name>

命令示例

# 生成一个模型文件
alpenl generate User
# 输出:生成文件:models/User-model.ts

# 使用别名
alpenl g Product

📚 文档

完整的开发指南和 API 文档请查看:

🔌 插件开发

alpenl-cli 支持通过插件扩展功能。插件包名必须以 alpenl- 开头:

# 安装插件
npm install --save-dev alpenl-myplugin

# CLI 会自动加载和使用插件

更多信息请查看 插件开发指南

🛠️ 开发

克隆仓库

git clone https://github.com/Alpenl/alpenl-cli.git
cd alpenl

安装依赖

yarn install
# 或
npm install

构建项目

yarn build

本地开发

# 直接运行命令
node bin/alpenl <command>

# 或链接到全局
yarn link
alpenl <command>

运行测试

# 运行所有测试
yarn test

# 监视模式
yarn watch

# 生成覆盖率报告
yarn coverage

📝 技术栈

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

MIT - 详见 LICENSE 文件

🔗 链接


提示: 这是一个命令行工具,请使用 npm install -g alpenl-cli 全局安装,而不是作为项目依赖安装。