# tsunittesthelper

> Creates a random number between min and max

Latest version **1.0.1** (published 2023-01-04) · MIT license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2023-01-04 |
| First published | 2023-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | debabbe |

## Links

- npm: https://www.npmjs.com/package/tsunittesthelper
- Repository: https://github.com/deBabbbe/TsUnitTestHelper
- Homepage: https://github.com/deBabbbe/TsUnitTestHelper#readme
- Issues: https://github.com/deBabbbe/TsUnitTestHelper/issues
- npm.io page: https://npm.io/package/tsunittesthelper

## Recent versions

- 1.0.1 (latest) — 2023-01-04
- 1.0.0 — 2023-01-04

## README

# TsUnitTestHelper

## generateRandomInt(min: number = 1, max: number = 10): number

Creates a random number between min and max

## generateRandomString(size: number = 10): string

Creates a random string wtih n chars

## generateRandomBool(): boolean

Creates a random bool

## toRandomCase(string: string): string

Returns the passed string in random case
(Also available as extension function)

## generateRandomStringWithPrefix(prefix: string, randStringSize: number = 10)

Creates a random string with the passed size and the passed prefix

## generateRandomList\<Type\>(generator: () => Type, size: number = 10): Type[]

Creates a random list with passed size generated by the passed generator function

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