@fdmg/imgix-upload

中文文档
0.0.58发布于 2026/10/30ISCCommonJS零依赖构建来源已验证近 30 天下载 2653

Command-line tool to upload images to the FDMG IMGIX S3 Bucket

原始使用文档
文档目录5 节
  1. Prerequisites
  2. Getting started
  3. For users of this tool
  4. For developers of this tool
  5. Environment variables

Build CodeQL

IMGIX Upload

Upload images to IMGIX and output a JSON-file with mappings to the hashed filenames on IMGIX.

Prerequisites

  1. Node & NPM

Getting started

For users of this tool

  1. Run npm i -g @fdmg/imgix-upload to install this CLI-tool globally.
  2. Make sure the required environment variables are set
  3. You can now use fdmg-imgix-upload from the command-line or use the shorthand fiu.
    • Run fiu --help to see the available options.

Alternatively:

  1. Run npm i -D @fdmg/imgix-upload to install the tool for your project.
  2. Make sure the required environment variables are set or available in an .env file.
  3. fdmg-imgix-upload or fiu commands are now available in package.json scripts.

For developers of this tool

  1. Run npm i to install all dependencies
  2. Run npm run build to build the development version of this application.
    • Alternatively run npm run build:prod to build the production version of this application.
  3. Make sure the required environment variables are set or available in an .env file.
  4. Run npm start

Environment variables

The following environment are supported:

  • ENVIRONMENT
  • IMGIX_UPLOAD_AWS_DEFAULT_REGION=eu-west-1
  • IMGIX_UPLOAD_RELATIVE_IMAGE_MAP_LOCATION=./imageMap.json
  • IMGIX_UPLOAD_RELATIVE_IMAGE_FOLDER_LOCATION=./public
  • IMGIX_UPLOAD_ACC_S3_API_KEY= (required)
  • IMGIX_UPLOAD_ACC_S3_SECRET_KEY= (required)
  • IMGIX_UPLOAD_ACC_S3_BUCKET_URL= (required)
  • IMGIX_UPLOAD_ACC_S3_BUCKET= (required)
  • IMGIX_UPLOAD_DEV_S3_API_KEY= (required)
  • IMGIX_UPLOAD_DEV_S3_SECRET_KEY= (required)
  • IMGIX_UPLOAD_DEV_S3_BUCKET_URL= (required)
  • IMGIX_UPLOAD_DEV_S3_BUCKET= (required)
  • IMGIX_UPLOAD_PROD_S3_API_KEY= (required)
  • IMGIX_UPLOAD_PROD_S3_SECRET_KEY= (required)
  • IMGIX_UPLOAD_PROD_S3_BUCKET_URL= (required)
  • IMGIX_UPLOAD_PROD_S3_BUCKET= (required)
  • IMGIX_UPLOAD_S3_DATA_CACHE_CONTROL=max-age=15768000

版本与发布记录

@fdmg/imgix-upload 共发布 57 个版本,首次发布于 2021/12/16;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.0.58latest2026/10/3015 天前
0.0.572026/10/011 个月前
0.0.562026/09/291 个月前
0.0.552026/09/102 个月前
0.0.542026/08/113 个月前
0.0.532026/08/113 个月前

其他发布通道:next → 0.0.11-canary.3。

关于 @fdmg/imgix-upload 的常见问题

@fdmg/imgix-upload 是什么?

Command-line tool to upload images to the FDMG IMGIX S3 Bucket

如何安装 @fdmg/imgix-upload?

在项目目录运行 npm install @fdmg/imgix-upload,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 fiu、fdmg-imgix-upload,可以用 npx fiu 直接运行。

@fdmg/imgix-upload 支持 TypeScript 吗?

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

@fdmg/imgix-upload 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fdmg/imgix-upload 可以商用吗?

@fdmg/imgix-upload 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fdmg/imgix-upload 的下载量有多少?

根据 npm 官方下载统计,@fdmg/imgix-upload 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,653 次,日均约 88 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fdmg/imgix-upload 还在维护吗?

最新版本 0.0.58 发布于 2026/10/30(15 天前);至今共发布 57 个版本,其中过去 12 个月发布了 13 个;首次发布于 2021/12/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。