# filestar 中文文档

规范地址：https://npmcn.com/package/filestar/

版本：30\.6\.0
npm 元数据更新时间：2026-11-03T16:03:11.030Z
中文译文更新时间：2026-11-03T19:33:56.966Z
软件包许可：SEE LICENSE IN LICENSE\.md

本文由上游 README 机器翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/filestar
原文对照：https://npmcn.com/package/filestar/?lang=original
项目主页：https://filestar.com/

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：3.2 kB，4 个文件
- TypeScript 类型：未声明
- Node.js 要求：\>=18
- 运行依赖：0 个
- 首次发布：2026-10-09T12:55:28.923Z
- 最新版本发布：2026-11-03T16:03:10.855Z
- 已发布版本数：16（近 12 个月 16 个）

## 中文简介

对任何文件执行任何操作：Filestar命令行（filestarcli）。转换，压缩和转换数以千计的文件格式。

## 安装

```sh
npm install filestar
```

也可以使用：`pnpm add filestar`、`yarn add filestar`、`bun add filestar`

## README

# Filestar CLI

`filestarcli` (也 `filestar`的命令行 [Filestar](https://filestar.com/) 30.6.0:转换, 压缩和转换数以千计的文件格式。

```sh
npm install -g filestar
filestarcli -i photo.png -c "convert to jpg" -o .

npx filestar -i report.docx -c "convert to pdf"
```

Windows （x64、x86）、macOS（英特尔和苹果的芯片）和Linux （x64）。更新与 `npm update -g filestar`。

**在Windows上，调用 `filestarcli`,从来没有 `filestar`** （人、脚本和AI代理）：Filestar桌面 app把自己的文件夹放在PATH上 `filestar` 可以启动应用程序（Filestar.exe），而不是命令行。

帮助: [https://filestar.com/help/automation/filestar-cli](https://filestar.com/help/automation/filestar-cli) ·其他安装方式： [https://filestar.com/help/installation/other-ways-to-install](https://filestar.com/help/installation/other-ways-to-install)

由Bosma Interactive AB发布。Filestar是专有软件：参见LICENSE.md。

## 常见问题

### filestar 是什么？

对任何文件执行任何操作：Filestar命令行（filestarcli）。转换，压缩和转换数以千计的文件格式。

### 如何安装 filestar？

在项目目录运行 npm install filestar，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 filestar、filestarcli，可以用 npx filestar 直接运行。

### filestar 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/filestar 是否存在。

### filestar 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=18。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### filestar 可以商用吗？

filestar 使用 SEE LICENSE IN LICENSE\.md 许可。许可条款写在包内的独立文件中，请阅读该文件确认可否商用。以上为概括，不构成法律意见，请以许可原文为准。

### filestar 还在维护吗？

最新版本 30\.6\.0 发布于 2026/11/04（今天）；至今共发布 16 个版本，其中过去 12 个月发布了 16 个；首次发布于 2026/10/09。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

