@adminjs/express

中文文档
6.1.1发布于 2024/12/10SEE LICENSE IN LICENSETypeScriptES Module零依赖近 30 天下载 17.1万

This is an official AdminJS plugin which integrates it with Express.js framework

原始使用文档
文档目录5 节
  1. AdminJS
  2. Usage
  3. Debugging
  4. License
  5. About rst.software

Expressjs plugin for AdminJS

This is an official AdminJS plugin which integrates it to expressjs framework.

AdminJS

AdminJS is an automatic admin interface which can be plugged into your application. You, as a developer, provide database models (like posts, comments, stores, products or whatever else your application uses), and AdminJS generates UI which allows you (or other trusted users) to manage content.

Check out the example application with mongo and postgres models here: https://adminjs-demo.herokuapp.com/admin/

Or visit AdminJS github page.

Usage

To see example usage visit the Express section under AdminJS project page

Debugging

Set process.env.ADMINJS_EXPRESS_DEBUG env variable to see debug logs from the library

License

AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the LICENSE file.

About rst.software

We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.

  • We are available for hire.
  • If you want to work for us - check out the career page.

版本与发布记录

@adminjs/express 共发布 20 个版本,首次发布于 2021/06/19;过去 12 个月发布了 0 个版本。

版本发布日期距今
6.1.1latest2024/12/101.9 年前
6.1.02023/11/212 年前
6.0.12023/09/223 年前
6.0.02023/04/183 年前
6.0.0-beta.3beta2023/03/283 年前
6.0.0-beta.22023/03/213 年前

其他发布通道:dev → 5.1.0-dev.2,beta → 6.0.0-beta.3。

关于 @adminjs/express 的常见问题

@adminjs/express 是什么?

This is an official AdminJS plugin which integrates it with Express.js framework

如何安装 @adminjs/express?

在项目目录运行 npm install @adminjs/express,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:adminjs(^7.4.0)、express(>=4.18.2)、express-formidable(^1.2.0)、express-session(>=1.17.3)、tslib(^2.5.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@adminjs/express 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adminjs/express 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adminjs/express 可以商用吗?

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

@adminjs/express 的下载量有多少?

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

@adminjs/express 还在维护吗?

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