# @sanity/util

> Utilities shared across projects of Sanity

Latest version **6.16.0** (published 2026-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sanity/util
pnpm add @sanity/util
yarn add @sanity/util
bun add @sanity/util
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.16.0 |
| Published | 2026-09-22 |
| First published | 2016-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=22.12 |
| Dependencies | 7 |
| Unpacked size | 91.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6325 |
| Author | Sanity.io <hello@sanity.io> |
| Maintainers | sanity-svc.npm, sanity-io |
| Keywords | cms, content, headless, realtime, sanity, util |

## Links

- npm: https://www.npmjs.com/package/@sanity/util
- Repository: https://github.com/sanity-io/sanity
- Homepage: https://www.sanity.io/
- Issues: https://github.com/sanity-io/sanity/issues
- npm.io page: https://npm.io/package/@sanity/util

## Dependencies (7)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.2
- [get-it](https://npm.io/package/get-it.md) ^9.5.5
- [date-fns](https://npm.io/package/date-fns.md) ^4.4.0
- [@date-fns/tz](https://npm.io/package/@date-fns/tz.md) ^1.5.0
- [@date-fns/utc](https://npm.io/package/@date-fns/utc.md) ^2.1.1
- [@sanity/types](https://npm.io/package/@sanity/types.md) 6.16.0
- [@sanity/client](https://npm.io/package/@sanity/client.md) ^8.6.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 6.16.0 (latest) — 2026-09-22
- 6.17.0-next.14 (next) — 2026-09-23
- 6.11.0 (stable) — 2026-08-25
- 4.22.1 (maintenance-v4) — 2026-08-19
- 5.31.2 (maintenance-v5) — 2026-08-19
- 6.5.0-workbench.20260714145319 (workbench) — 2026-07-14
- 6.0.0-next-major.20260611102044 (next-major) — 2026-06-11
- 5.25.0-canary.20260507124900 (canary) — 2026-05-07
- 5.14.2-alpha.15 (alpha) — 2026-03-11
- 4.20.2-fix-tsa-expression-not-allowed.2.5e90622c2d (fix-tsa-expression-not-allowed) — 2025-12-04
- 4.20.2-fix-babel-traverse-bug.2.03a7495fed (fix-babel-traverse-bug) — 2025-12-04
- 4.1.2-rita-prerelease-ref.28 (rita-prerelease-ref) — 2025-07-24
- 4.1.2-4.2.0-rita-prerelease-tag.0.28 (4.2.0-rita-prerelease-tag.0) — 2025-07-23
- 4.1.1-bump-pkg-utils.6 (bump-pkg-utils) — 2025-07-22
- 3.99.1-bitter-lemon.5 (bitter-lemon) — 2025-07-18
- … 4640 more at https://npm.io/package/@sanity/util/versions

## README

# @sanity/util

Utilities shared across projects of Sanity

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