# @thi.ng/object-utils

> Utilities for manipulating plain JS objects & maps

Latest version **1.3.21** (published 2026-08-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @thi.ng/object-utils
pnpm add @thi.ng/object-utils
yarn add @thi.ng/object-utils
bun add @thi.ng/object-utils
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.21 |
| Published | 2026-08-25 |
| First published | 2024-07-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 38.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Karsten Schmidt |
| Maintainers | thi.ng |
| Keywords | conversion, invert, keys, map, merge, object, partition, rename, select, sort, typescript |

## Links

- npm: https://www.npmjs.com/package/@thi.ng/object-utils
- Repository: https://codeberg.org/thi.ng/umbrella
- Homepage: https://thi.ng/object-utils
- Funding: https://github.com/sponsors/postspectacular
- npm.io page: https://npm.io/package/@thi.ng/object-utils

## Dependencies (2)

- [@thi.ng/api](https://npm.io/package/@thi.ng/api.md) ^8.12.28
- [@thi.ng/checks](https://npm.io/package/@thi.ng/checks.md) ^3.11.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.3.21 (latest) — 2026-08-25
- 1.3.20 — 2026-07-21
- 1.3.19 — 2026-07-02
- 1.3.18 — 2026-06-05
- 1.3.17 — 2026-05-23
- 1.3.16 — 2026-05-20
- 1.3.14 — 2026-05-11
- 1.3.13 — 2026-05-08
- 1.3.12 — 2026-04-26
- 1.3.11 — 2026-04-18
- 1.3.10 — 2026-04-02
- 1.3.9 — 2026-03-19
- 1.3.8 — 2026-03-07
- 1.3.7 — 2026-03-07
- 1.3.6 — 2026-02-07
- … 46 more at https://npm.io/package/@thi.ng/object-utils/versions

## README

<!-- This file is generated - DO NOT EDIT! -->
<!-- Please see: https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#changes-to-readme-files -->
# ![@thi.ng/object-utils](https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/banners/thing-object-utils.svg?ede54c24)

[![npm version](https://img.shields.io/npm/v/@thi.ng/object-utils.svg)](https://www.npmjs.com/package/@thi.ng/object-utils)
![npm downloads](https://img.shields.io/npm/dm/@thi.ng/object-utils.svg)
[![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)

> [!NOTE]

> This is one of 217 standalone projects. LLM-free, human-made and
> cared for software, maintained as part of the
> [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem and
> anti-framework.
>
> 🚀 Please help me to work full-time on these projects by [sponsoring
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
> Thank you! ❤️

- [About](#about)
  - [Features](#features)
- [Status](#status)
- [Related packages](#related-packages)
- [Installation](#installation)
- [Dependencies](#dependencies)
- [API](#api)
- [Authors](#authors)
- [License](#license)

## About

Utilities for manipulating plain JS objects & maps.

This package contains functionality which was previously part of and has been
extracted from the [@thi.ng/associative](https://thi.ng/associative) package.

### Features

- Key-value pair inversion for maps and vanilla objects, i.e. swaps `K => V` to `V => K`
- Single or multi-property index generation for maps and objects
- Key selection, renaming, segmenting, splitting, transformations for maps and
  objects
- Deep-merging (destructively & non-destructively) of objects/maps

## Status

**STABLE** - used in production

[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bobject-utils%5D)

## Related packages

- [@thi.ng/associative](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/associative) - ES Map/Set-compatible implementations with customizable equality semantics & supporting operations

## Installation

```bash
yarn add @thi.ng/object-utils
```

ESM import:

```ts
import * as ou from "@thi.ng/object-utils";
```

Browser ESM import:

```html
<script type="module" src="https://esm.run/@thi.ng/object-utils"></script>
```

[JSDelivr documentation](https://www.jsdelivr.com/)

For Node.js REPL:

```js
const ou = await import("@thi.ng/object-utils");
```

Package sizes (brotli'd, pre-treeshake): ESM: 1.21 KB

## Dependencies

- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)

Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)

## API

[Generated API docs](https://docs.thi.ng/umbrella/object-utils/)

TODO

## Authors

- [Karsten Schmidt](https://thi.ng)

If this project contributes to an academic publication, please cite it as:

```bibtex
@misc{thing-object-utils,
  title = "@thi.ng/object-utils",
  author = "Karsten Schmidt",
  note = "https://thi.ng/object-utils",
  year = 2017
}
```

## License

&copy; 2017 - 2026 Karsten Schmidt // Apache License 2.0

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