@flagsmith/nodejs

中文文档
9.4.0发布于 2026/11/14MITTypeScriptESM + CJS构建来源已验证近 30 天下载 15.2万

Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.

原始使用文档
文档目录7 节
  1. Installation
  2. Adding to your project
  3. Contributing
  4. Getting Help
  5. Testing
  6. Get in touch
  7. Useful links

Flagsmith NodeJS Client

npm version

The SDK clients for NodeJS https://www.flagsmith.com/. Flagsmith allows you to manage feature flags and remote config across multiple projects, environments and organisations.

Installation

npm install @flagsmith/nodejs

Adding to your project

For full documentation visit https://docs.flagsmith.com/clients/server-side.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests

Getting Help

If you encounter a bug or feature request we would like to hear about it. Before you submit an issue please search existing issues in order to prevent duplicates.

Testing

To run the local tests you need to run following commands beforehand:

git submodule add [email protected]:Flagsmith/engine-test-data.git tests/engine/engine-tests/engine-test-data/
git submodule update --init --recursive

Get in touch

If you have any questions about our projects you can email [email protected].

Website

Documentation

版本与发布记录

@flagsmith/nodejs 共发布 9 个版本,首次发布于 2026/05/27;过去 12 个月发布了 9 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
9.4.0latest2026/11/142 天前
9.3.02026/11/069 天前
9.2.02026/11/0313 天前
9.1.02026/10/051 个月前
9.0.32026/09/022 个月前
9.0.22026/09/022 个月前

其他发布通道:internal → 1.0.0-internal.0。

关于 @flagsmith/nodejs 的常见问题

@flagsmith/nodejs 是什么?

Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.

如何安装 @flagsmith/nodejs?

在项目目录运行 npm install @flagsmith/nodejs,或使用 pnpm add / yarn add / bun add。

@flagsmith/nodejs 支持 TypeScript 吗?

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

@flagsmith/nodejs 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@flagsmith/nodejs 需要什么版本的 Node.js?

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

@flagsmith/nodejs 可以商用吗?

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

@flagsmith/nodejs 的下载量有多少?

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

@flagsmith/nodejs 还在维护吗?

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