# @morev/utils

> Collection of JavaScript / TypeScript utilities

Latest version **3.15.0** (published 2026-03-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.15.0 |
| Published | 2026-03-24 |
| First published | 2022-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 4 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Author | Maxim Morev |
| Maintainers | morev |
| Keywords | javascript, typescript, js, ts, utils, utilities |

## Links

- npm: https://www.npmjs.com/package/@morev/utils
- Repository: https://github.com/MorevM/utils
- Homepage: https://github.com/MorevM/utils#readme
- Issues: https://github.com/MorevM/utils/issues
- npm.io page: https://npm.io/package/@morev/utils

## Dependencies (4)

- [ohash](https://npm.io/package/ohash.md) ^1.1.4
- [fast-copy](https://npm.io/package/fast-copy.md) ^3.0.2
- [type-fest](https://npm.io/package/type-fest.md) ^4.26.1
- [fast-equals](https://npm.io/package/fast-equals.md) ^5.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.15.0 (latest) — 2026-03-24
- 3.14.0 — 2026-03-07
- 3.13.1 — 2025-05-30
- 3.13.0 — 2025-05-30
- 3.12.2 — 2025-05-15
- 3.12.1 — 2024-12-15
- 3.11.1 — 2024-06-14
- 3.11.0 — 2024-06-02
- 3.10.0 — 2024-04-30
- 3.9.0 — 2024-04-07
- 3.8.0 — 2024-03-24
- 3.7.0 — 2024-03-03
- 3.6.0 — 2024-02-04
- 3.5.0 — 2024-01-24
- 3.4.0 — 2024-01-21
- … 20 more at https://npm.io/package/@morev/utils/versions

## README

![Promo image of @morev/utils package](./.github/images/banner.svg)

![Stability of "master" branch](https://img.shields.io/github/actions/workflow/status/MorevM/utils/build.yaml?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Last commit](https://img.shields.io/github/last-commit/morevm/utils)
![Release version](https://img.shields.io/github/v/release/morevm/utils?include_prereleases)
![GitHub Release Date](https://img.shields.io/github/release-date/morevm/utils)
![Keywords](https://img.shields.io/github/package-json/keywords/morevm/utils)

# @morev/utils

100+ fully typed JavaScript utilities for everyday use. \
100+ TypeScript utility types.

---

> **IMPORTANT:** The library is not transpiled.
>
> By keep transpiling libraries we push web backward with legacy code which is unneeded for most of the users.
>
> If you need to support legacy users, you can optionally transpile the library in your build pipeline.

## Installation

```sh
# Using `yarn`
yarn add @morev/utils

# Using `npm`
npm install @morev/utils

# Using `pnpm`
pnpm add @morev/utils
```

## Usage

Just import/require needed utilities/types and use them :)

```ts
import { clamp } from '@morev/utils';
import type { ArrayOf } from '@morev/utils';

// CJS
const { arrayShuffle } = require('@morev/utils');
```

## Acknowledgments

- [fast-copy](https://github.com/planttheidea/fast-copy) for `deepClone` and `deepCloneStrict` utilities;
- [fast-equals](https://github.com/planttheidea/fast-equals) for `deepEqual` and `deepEqualCircular` utilities;
- [ohash](https://github.com/unjs/ohash) for `hash` utility;
- [type-fest](https://github.com/sindresorhus/type-fest) for many utility types.
- `object-to-formdata` utility mostly inspired by [object-to-formdata](https://github.com/therealparmesh/object-to-formdata) package,
  but public API and implementation is a bit different according to my experience and needs.
- [awaity](https://github.com/asfktz/Awaity.js) for an inspiration and initial code base of the `asyncArray` utility.
- [set-cookie-parser](https://github.com/nfriedly/set-cookie-parser/) for the basic implementation of the `parseResponseCookie` utility and tests.
- [cookie](https://github.com/jshttp/cookie) for the basic implementation of the `serializeCookie` utility and its tests.
- [compute-gcd](https://github.com/compute-io/gcd) for the implementation of the `gcd` utility and its tests.

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