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

@deer404/flt

v0.1.4

Published

Flutter Tool - 简化Flutter开发的命令行工具

Readme

FLT - Flutter Tool

简化Flutter开发的命令行工具

📦 安装

npm install -g @deer404/flt

🚀 使用方法

构建APK

# 构建debug版本
flt android build

# 构建release版本
flt android build --release

# 自定义APK名称前缀
flt android build --name myapp

Android设备管理

# 列出连接的设备
flt android devices

# 安装APK到设备(智能查找)
flt android install

# 安装release版本APK
flt android install release

# 指定设备安装
flt android install --device <device-id>

# 使用自定义名称前缀(需与构建时一致)
flt android install --name myapp

# 指定APK文件路径
flt android install --file /path/to/your/app.apk

📋 命令详解

flt android build

构建Flutter APK,支持以下选项:

  • -r, --release: 构建release版本(默认为debug版本)
  • -n, --name <name>: 自定义APK名称前缀(默认为"app")

生成的APK会自动添加时间戳重命名,例如:app-debug-202412301430.apk

flt android

Android相关操作:

flt android devices (别名: flt android d)

列出所有连接的Android设备及其状态。

flt android install (别名: flt android i)

安装APK到连接的Android设备:

  • -d, --device <device>: 指定设备ID
  • -f, --file <file>: 指定APK文件路径
  • -n, --name <name>: APK名称前缀(默认为"app")

智能APK查找

  1. 优先查找标准文件名(如 app-debug.apk
  2. 如果没有找到,自动查找最新的带时间戳的APK文件(如 app-debug-202506271511.apk
  3. 支持自定义名称前缀,确保与构建时使用的名称一致

🔧 系统要求

  • Node.js >= 16.0.0
  • Flutter SDK
  • Android SDK (用于Android操作)

🎯 特性

  • ✅ 跨平台支持 (macOS, Windows, Linux)
  • ✅ 自动重命名APK文件
  • ✅ 彩色输出
  • ✅ 智能设备检测
  • ✅ TypeScript支持
  • ✅ 基于rslib构建

💡 使用示例

完整工作流程

# 1. 构建Debug版本APK
flt android build
# 输出: app-debug-202506271511.apk

# 2. 安装到设备(会自动找到最新的APK)
flt android install
# 输出: 找到APK文件: app-debug-202506271511.apk

# 3. 使用自定义名称
flt android build --name myproject
# 输出: myproject-debug-202506271512.apk

flt android install --name myproject
# 输出: 找到APK文件: myproject-debug-202506271512.apk

# 4. 构建Release版本
flt android build --release --name myproject
# 输出: myproject-release-202506271513.apk

flt android install release --name myproject
# 输出: 找到APK文件: myproject-release-202506271513.apk

📝 开发

# 克隆项目
git clone <repo-url>
cd flt

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建项目
pnpm build

# 本地测试
npm link