# typescript-utilities

> Set of generic TypeScript functions that are needed in almost every project.

Latest version **0.9.1** (published 2019-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install typescript-utilities
pnpm add typescript-utilities
yarn add typescript-utilities
bun add typescript-utilities
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.1 |
| Published | 2019-01-09 |
| First published | 2019-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Junus Ergin |
| Maintainers | junusergin |

## Links

- npm: https://www.npmjs.com/package/typescript-utilities
- Repository: https://github.com/JunusErgin/typescript-utilities
- Homepage: https://github.com/JunusErgin/typescript-utilities#readme
- Issues: https://github.com/JunusErgin/typescript-utilities/issues
- npm.io page: https://npm.io/package/typescript-utilities

## Recent versions

- 0.9.1 (latest) — 2019-01-09
- 0.9.0 — 2019-01-09

## README

# typescript-utilities
Set of generic TypeScript functions that are needed in almost every project.


## Getting started
just install the package from NPM by running

```
 npm install --save typescript-utilities
```

## Set of functions

### Array
`sortArray(arr: any, field?: string)`

Orders any Array. If there is an array of objects, the second parameter specifies the "order_by" field.

### Date

`isValidDate(d: Date): boolean`

Checks wheather a date object contains a valid date or not.

### String

`prettifyString(field: string): string`

Pretty-prints any string, e.g. `prettifyString(this_string)` will be converted to `This string`



`capitalizeTxt(txt: string): string`

Capitalizes the first letter of a string


`minimizeTxt(txt: string): string`

Minimizes the first letter of a string

`toCamelCase(str: string): string`

Converts any string to CamelCase




### Style

`readCSSProperty(name: string): string`

Get any CSS4 variable


## License
MIT

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