# @jawis/jab

> Collection of basic utilities for JavaScript

Latest version **0.38.0** (published 2026-02-17) · MIT license · 58 weekly downloads

## Install

```sh
npm install @jawis/jab
pnpm add @jawis/jab
yarn add @jawis/jab
bun add @jawis/jab
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.38.0 |
| Published | 2026-02-17 |
| First published | 2021-05-05 |
| Weekly downloads | 58 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 57.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jawis |
| Keywords | util, utilities, stdlib |

## Links

- npm: https://www.npmjs.com/package/@jawis/jab
- Repository: https://github.com/wistoft/jawis
- Homepage: https://github.com/wistoft/jawis/tree/main/packages/jab#readme
- Issues: https://github.com/wistoft/jawis/issues
- npm.io page: https://npm.io/package/@jawis/jab

## Dependencies (1)

- [@jawis/jabc](https://npm.io/package/@jawis/jabc.md) ^0.38.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.38.0 (latest) — 2026-02-17
- 5.0.0-dev (dev) — 2025-07-25
- 2.2.0-dev.2 — 2023-09-28
- 2.2.0-dev.1 — 2023-09-28
- 2.2.0 — 2023-07-02
- 2.1.0 — 2023-04-11
- 2.0.0 — 2022-12-19
- 1.0.3 — 2022-11-19
- 1.0.2 — 2022-10-01
- 1.0.2-dev.1 — 2021-12-29
- 1.0.1 — 2021-06-05
- 1.0.0 — 2021-05-20
- 0.0.37-dev.2 — 2021-05-20
- 0.0.37-dev.1 — 2021-05-18
- 0.0.37-dev — 2021-05-18
- … 17 more at https://npm.io/package/@jawis/jab/versions

## README

# Basic utilities for JavaScript

Collection of basic utilities for JavaScript. Can be used in both node and web
projects.

## Installation

```
npm i @jawis/jab
```

## Usage

**Documentation**: Everything is developed in TypeScript, so type declarations
are the best place to find information about the individual functions and
classes.

Here are some highlights:

- **getProtoChain**: Returns the prototype chain of an object as an array of
  'class' names.

## Build

All imports are side effect free. So this library is ideal for tree-shaking.

## Known issues

- capture
  - Handles binary data superficially.
  - Sparsity in arrays is not preserved.
  - Non-enumerable properties is not preserved.

## Related work

- Capture:
  [Several](https://npmtrends.com/@stdlib/utils-native-class-vs-arson-vs-error-to-json-vs-lave-vs-serialize-error-vs-serialize-javascript-vs-uneval)

## License

MIT

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