# 使用 npm 安装 image-size

查看 image-size 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:image-size
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g image-size
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:image-size
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/image-size>
- **版本:** 2.0.2
- **来源摘要:** get dimensions of any image file
- **主页:** <https://github.com/image-size/image-size#readme>
- **仓库:** <https://github.com/image-size/image-size>
- **上游文档:** <https://github.com/image-size/image-size#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/image-size/-/image-size-2.0.2.tgz>
- **问题跟踪器:** <https://github.com/image-size/image-size/issues>
- **发布时间:** 2025-04-02T14:22:29.940Z
- **最后更新:** 2025-04-02T14:22:29.940Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- image-size (cli)
- image-size (别名)

## 构建依赖

- @biomejs/biome
- @types/glob
- @types/node
- c8
- glob
- ts-node
- tsup
- typedoc
- typescript

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.0.2
- 管理器更新时间: 2025-04-02
- 本地数据: OK
- 上游仓库: https://github.com/image-size/image-size
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 image-size 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.0.2, Legacy: 1.2.1
- **Version Count:** 71
- **Maintainers:** netroy
- **Author:** netroy
- **Publisher:** netroy
- **Engines:** Node: >=16.x
- **Integrity:** sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==
- **Shasum:** 84a7b43704db5736f364bf0d1b029821299b4bdc
- **Unpacked Size:** 378,406
- **File Count:** 0
- **Created At:** 2013-07-02T01:38:44.191Z
- **Latest Published At:** 2025-04-02T14:22:29.940Z
- **Modified At:** 2025-04-02T14:30:29.879Z


## 相关链接

- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [image-dimensions](https://www.automicvault.com/zh-hans/pkg/npm/image-dimensions/) - Both packages work with overlapping file formats or content types. Shared terms: cli, dimensions, get, height, image.
- [image-data-uri](https://www.automicvault.com/zh-hans/pkg/npm/image-data-uri/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, images, media.
- [ts-images](https://www.automicvault.com/zh-hans/pkg/npm/ts-images/) - Both packages work with overlapping file formats or content types. Shared terms: avif, bmp, cli, gif, image.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
