npm · npm:file-type
file-type 活跃
Detect the file type of a file, stream, or data
file-type 的最新稳定版本是 22.3.0,发布于 2026-10-29。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 22.3.0 |
|---|---|
| 发布时间 | 2026-10-29 11:19:14 UTC |
| 安装 | npm install file-type@latest |
| 运行要求(engines) | {"node":">=22"} |
| Peer 依赖 | — |
| Dist 标签 | latest: 22.3.0 version-16: 16.5.4 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 12:12:24 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-10-29 11:19:14 UTC · 14 天前 |
| 过去 12 个月的稳定版本数 | 14 |
| 已发布版本数 | 174 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
22.3.0 | 2026-10-29 11:19:14 UTC |
22.2.0 | 2026-10-14 16:45:03 UTC |
22.1.1 | 2026-09-17 05:27:34 UTC |
22.1.0 | 2026-09-11 10:28:53 UTC |
22.0.2 | 2026-08-15 01:47:48 UTC |
22.0.1 | 2026-04-09 15:24:14 UTC |
22.0.0 | 2026-03-26 17:34:04 UTC |
21.3.4 | 2026-03-22 14:29:40 UTC |
21.3.3 | 2026-03-16 18:28:40 UTC |
21.3.2 | 2026-03-13 07:42:33 UTC |
21.3.1 | 2026-03-09 08:22:21 UTC |
21.3.0 | 2026-01-04 00:56:55 UTC |
21.2.0 | 2025-12-25 17:52:37 UTC |
21.1.1 | 2025-11-19 17:22:38 UTC |
21.1.0 | 2025-11-10 08:15:38 UTC |
21.0.0 | 2025-05-23 11:52:21 UTC |
20.5.0 | 2025-04-26 20:09:56 UTC |
20.4.1 | 2025-03-13 07:32:49 UTC |
20.4.0 | 2025-02-26 19:00:22 UTC |
20.3.0 | 2025-02-25 06:55:43 UTC |
显示 174 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
node 16 | 18.7.0 |
node 18 | 20.5.0 |
node 20 | 21.3.4 |
node 22 | 22.3.0 |
node 24 | 22.3.0 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
file-type 的最新版本是什么?
file-type 的最新稳定版本是 22.3.0,发布于 2026-10-29。Vigia 于 2026-11-12 核实。
如何安装 file-type 的最新版本?
运行 npm install file-type@latest。最新稳定版本是 22.3.0(2026-11-12 核实)。
file-type 是否已弃用?
否。注册表中 file-type 未被标记为已弃用。
file-type 需要哪个版本的 Node.js?
file-type 22.3.0 声明的要求为:{"node":">=22"}。
file-type 22.3.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 file-type 22.3.0。
file-type 是否仍在维护?
file-type 在过去 12 个月内发布了 14 个稳定版本,最近一次在 14 天前。活跃度:活跃。
观察到的变更
- hu Oct 29 2026 11:47:52 GMT+0000 (Coordinated Universal Time) — released 22.2.0 → 22.3.0
- hu Oct 15 2026 10:52:05 GMT+0000 (Coordinated Universal Time) — released 22.2.0 → 22.2.0
- Wed Oct 14 2026 16:50:39 GM +0000 (Coordinated Universal Time) — released 22.1.1 → 22.2.0
相关软件包
- @tanstack/query-core
- watchpack
- @radix-ui/react-separator
- unist-util-visit-parents
- synckit
- terser-webpack-plugin
- @types/deep-eql
- babel-preset-jest
- @smithy/middleware-retry
- @testing-library/jest-dom
- is-buffer
- @smithy/util-hex-encoding
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/file-type) [](https://vigia.coredls.cloud/npm/file-type) [](https://vigia.coredls.cloud/npm/file-type)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/file-type
GET https://vigia.coredls.cloud/v1/packages/npm/file-type/versions/{version}