@contextco/context-generated

中文文档
14.0.0发布于 2024/07/01MITTypeScriptESM + CJS近 30 天下载 2005

A generated SDK for ContextAPI.

原始使用文档
文档目录6 节
  1. Getting started
  2. Currently supported environments
  3. Install the @contextco/context-generated package
  4. JavaScript Bundle
  5. Key concepts
  6. ContextAPI

ContextApi client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ContextApi client.

Package (NPM) | Samples

Getting started

Currently supported environments

See our support policy for more details.

Install the @contextco/context-generated package

Install the ContextApi client library for JavaScript with npm:

npm install @contextco/context-generated

JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our bundling documentation.

Key concepts

ContextAPI

ContextAPI is the primary interface for developers using the ContextApi client library. Explore the methods on this client object to understand the different features of the ContextApi service that you can access.

版本与发布记录

@contextco/context-generated 共发布 11 个版本,首次发布于 2023/09/25;过去 12 个月发布了 0 个版本。

版本发布日期距今
14.0.0latest2024/07/012 年前
12.0.02024/06/202 年前
10.0.02024/04/182 年前
8.0.02024/03/112 年前
7.0.02024/02/102 年前
6.0.02023/11/302 年前

关于 @contextco/context-generated 的常见问题

@contextco/context-generated 是什么?

A generated SDK for ContextAPI.

如何安装 @contextco/context-generated?

在项目目录运行 npm install @contextco/context-generated,或使用 pnpm add / yarn add / bun add。

@contextco/context-generated 支持 TypeScript 吗?

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

@contextco/context-generated 支持 ESM 还是 CommonJS?

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

@contextco/context-generated 需要什么版本的 Node.js?

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

@contextco/context-generated 可以商用吗?

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

@contextco/context-generated 的下载量有多少?

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

@contextco/context-generated 还在维护吗?

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