# @stein197/ts-util

> TypeScript utility types

Latest version **1.10.0** (published 2022-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stein197/ts-util
pnpm add @stein197/ts-util
yarn add @stein197/ts-util
bun add @stein197/ts-util
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.10.0 |
| Published | 2022-12-04 |
| First published | 2021-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 194.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nail Gafarov |
| Maintainers | stein197 |
| Keywords | ts, typescript, util, utility, utils, utilities, cloneable, comparable, equalable, nullable, json, mime, attributes, css, tuple |

## Links

- npm: https://www.npmjs.com/package/@stein197/ts-util
- Repository: https://github.com/stein197/ts-util
- Homepage: https://github.com/stein197/ts-util#readme
- Issues: https://github.com/stein197/ts-util/issues
- npm.io page: https://npm.io/package/@stein197/ts-util

## 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

- 1.10.0 (latest) — 2022-12-04
- 1.9.0 — 2022-11-13
- 1.8.0 — 2022-11-04
- 1.7.0 — 2022-11-04
- 1.6.0 — 2022-11-03
- 1.5.0 — 2022-11-01
- 1.4.1 — 2022-09-19
- 1.4.0 — 2022-09-18
- 1.3.2 — 2021-11-09
- 1.3.1 — 2021-11-09
- 1.3.0 — 2021-11-08
- 1.2.0 — 2021-11-02
- 1.1.0 — 2021-10-14
- 1.0.1 — 2021-10-03
- 1.0.0 — 2021-10-03
- … 2 more at https://npm.io/package/@stein197/ts-util/versions

## README

# TypeScript utility types
This package contains most frequently used types that most projects need.

## Installation
```
npm install @stein197/ts-util
```

## Interfaces
- `Cloneable<T>`
- `Comparable<T>`
- `Equalable<T>`

## Types
- `Nullable<T>`
- `ObjectMap<T>`
- `Json`
- `JsonArray`
- `JsonObject`
- Large `MIME` module that contains all available MIME-types, described [here](https://www.iana.org/assignments/media-types/media-types.xhtml)
- Large `css` module that contains types related to CSS properties and their types.
- Large `HTMLAttributes` module that contains HTML-related typings
- `Tuple` module

> NOTE: For more detailed documentation, please, refer to the TSDoc comments in the source code.

## NPM scripts
- `make:index` generates at the root `index.ts`
- `make:mime` generates `MIME.ts` file
- `build` runs all scripts

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