# @cosmjs/utils

> Utility tools, primarily for testing code

Latest version **0.39.0** (published 2026-05-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @cosmjs/utils
pnpm add @cosmjs/utils
yarn add @cosmjs/utils
bun add @cosmjs/utils
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.39.0 |
| Published | 2026-05-04 |
| First published | 2020-06-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 700 |
| Maintainers | webmaster128, kiki-skip |

## Links

- npm: https://www.npmjs.com/package/@cosmjs/utils
- Repository: https://github.com/cosmos/cosmjs/tree/main/packages/utils
- npm.io page: https://npm.io/package/@cosmjs/utils

## Recent versions

- 0.39.0 (latest) — 2026-05-04
- 0.37.1 (backports-unsorted) — 2025-12-31
- 0.38.0-rc.1 (next) — 2025-12-24
- 0.38.1 — 2025-12-31
- 0.38.0 — 2025-12-30
- 0.37.0 — 2025-10-29
- 0.35.2 — 2025-10-29
- 0.37.0-rc.1 — 2025-10-24
- 0.36.2-0 — 2025-10-24
- 0.36.2 — 2025-10-24
- 0.35.1 — 2025-10-22
- 0.34.1 — 2025-10-22
- 0.37.0-rc.0 — 2025-10-17
- 0.36.1 — 2025-10-02
- 0.36.0 — 2025-08-14
- … 111 more at https://npm.io/package/@cosmjs/utils/versions

## README

# @cosmjs/utils

![typescript](https://img.shields.io/npm/types/@cosmjs/utils.svg)
[![npm version](https://img.shields.io/npm/v/@cosmjs/utils.svg)](https://www.npmjs.com/package/@cosmjs/utils)
[![license](https://img.shields.io/npm/l/@cosmjs/utils.svg)](https://github.com/cosmos/cosmjs/blob/v0.35.0/LICENSE)
![minimum node version](https://img.shields.io/node/v/@cosmjs/utils.svg)
![minified size](https://img.shields.io/bundlephobia/min/@cosmjs/utils.svg)
![monthly downloads](https://img.shields.io/npm/dm/@cosmjs/utils.svg)

Utility functions independent of blockchain applications. Primarily used for
testing but stuff like `sleep` can also be useful at runtime.

## License

This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).

---
_Source: https://npm.io/package/@cosmjs/utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
