# kompa

> TypeScript collection of various utility functions

Latest version **1.5.0** (published 2026-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install kompa
pnpm add kompa
yarn add kompa
bun add kompa
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2026-03-25 |
| First published | 2023-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 258.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bt7s7k7 |
| Maintainers | bt7s7k7 |

## Links

- npm: https://www.npmjs.com/package/kompa
- Repository: https://github.com/bt7s7k7/CommonTypes
- Homepage: https://github.com/bt7s7k7/CommonTypes#readme
- Issues: https://github.com/bt7s7k7/CommonTypes/issues
- npm.io page: https://npm.io/package/kompa

## Recent versions

- 1.5.0 (latest) — 2026-03-25
- 1.4.0 — 2026-03-24
- 1.3.0 — 2023-10-29
- 1.2.0 — 2023-06-14

## README

<p align=center>
    <img src="https://github.com/bt7s7k7/CommonTypes/raw/master/logo.png" alt="Kompa logo, stylistic representation of a sail ship" />
</p>
<h1 align=center>Kompa</h1>
A collection of various utility functions you have to rewrite every time you need them. Also contains additional data structures. The code is written to be as easy to understand as possible, not necessarily the most performant. The library is fully written in TypeScript and includes types.

Contains such functions as `escapeHTML`, `convertCase`, `binarySearch`, `lerpNumber` or `reverseIndexOf`. For full documentation refer to the source code. 

Data structures:
  - Graph
  - Linked List
  - Multi Map
  - Sorted Array

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