@equinor/echo-utils

中文文档
7.0.0发布于 2026/10/27MITTypeScriptES Module近 30 天下载 2773

logo

原始使用文档
文档目录6 节
  1. ⚠️ Dependency Rules
  2. NPM
  3. Run
  4. Test
  5. Documentation
  6. Imports in Test Handlers

logo

Echo-Utils

Package for creating echo related Echo Utils.

Version Downloads/week License Sisze

⚠️ Dependency Rules

Source of truth: /eslint.config.js - The @nx/enforce-module-boundaries rule defines all allowed dependencies.

echo-utils is a foundation utility library and CANNOT import from any other echo library.

See libs/README.md for the full dependency flow diagram.


/bundlephobia/:format/:packageName

Install

NPM

npm install @equinor/echo-utils --save

Development

Run

For development we have provided a test playground to be able to test Echo utils. This can be run by using.

npm start

Test

Echo tempPack is set upt to run Jest test suite. To run tests use.

npm run test

For abetter overview, run tests with test coverage.

npm run test-coverage

Documentation

Documentation generated using typedoc can be found here.

Imports in Test Handlers

Test handlers can import from the main entry point:

import { getLinkParamsOrThrow } from '@equinor/echo-utils';

Modern tree-shaking ensures that only the used utilities are included in test bundles.

版本与发布记录

@equinor/echo-utils 共发布 122 个版本,首次发布于 2021/03/10;过去 12 个月发布了 34 个版本。

版本发布日期距今
7.0.0latest2026/10/2717 天前
7.0.0-beta-2beta2026/10/2717 天前
7.0.0-beta-12026/10/2222 天前
7.0.0-beta-02026/10/2024 天前
6.3.12026/08/073 个月前
6.3.02026/07/233 个月前

关于 @equinor/echo-utils 的常见问题

如何安装 @equinor/echo-utils?

在项目目录运行 npm install @equinor/echo-utils,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:pako(>= 2.1.0 < 4)、react(>= 19.2.4)、lodash(>= 4.17.21 < 5)、react-dom(>= 19.2.4)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@equinor/echo-utils 支持 TypeScript 吗?

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

@equinor/echo-utils 支持 ESM 还是 CommonJS?

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

@equinor/echo-utils 可以商用吗?

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

@equinor/echo-utils 的下载量有多少?

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

@equinor/echo-utils 还在维护吗?

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