# @near-js/utils

> Common methods and constants for the NEAR API JavaScript client

Latest version **2.5.1** (published 2025-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @near-js/utils
pnpm add @near-js/utils
yarn add @near-js/utils
bun add @near-js/utils
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.5.1 |
| Published | 2025-11-06 |
| First published | 2023-03-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 448.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nearndy, frol, nearmorgan |

## Links

- npm: https://www.npmjs.com/package/@near-js/utils
- npm.io page: https://npm.io/package/@near-js/utils

## Dependencies (4)

- [depd](https://npm.io/package/depd.md) 2.0.0
- [mustache](https://npm.io/package/mustache.md) 4.0.0
- [@scure/base](https://npm.io/package/@scure/base.md) ^1.2.4
- [@near-js/types](https://npm.io/package/@near-js/types.md) 2.5.1

## Recent versions

- 2.5.1 (latest) — 2025-11-06
- 1.0.0-next.15 (next) — 2024-08-28
- 2.5.0 — 2025-11-03
- 2.4.1 — 2025-11-03
- 2.4.0 — 2025-10-26
- 2.3.4 — 2025-10-16
- 2.3.3 — 2025-10-01
- 2.3.2 — 2025-09-24
- 2.3.1 — 2025-09-10
- 2.3.0 — 2025-09-03
- 2.2.6 — 2025-08-26
- 2.2.5 — 2025-08-06
- 2.2.4 — 2025-07-24
- 2.2.3 — 2025-07-21
- 2.2.2 — 2025-07-09
- … 35 more at https://npm.io/package/@near-js/utils/versions

## README

# @near-js/utils

A collection of commonly-used functions and constants. 

## Modules

- [Format](https://github.com/near/near-api-js/blob/master/packages/utils/src/format.ts) NEAR denomination formatting functions
- [Logging](https://github.com/near/near-api-js/blob/master/packages/utils/src/logging.ts) functions for printing formatted RPC output
- [Provider](https://github.com/near/near-api-js/blob/master/packages/utils/src/provider.ts) functions for parsing RPC output
- [Validators](https://github.com/near/near-api-js/blob/master/packages/utils/src/validators.ts) functions for querying blockchain validators

# License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See [LICENSE](https://github.com/near/near-api-js/blob/master/LICENSE) and [LICENSE-APACHE](https://github.com/near/near-api-js/blob/master/LICENSE-APACHE) for details.

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