# @tsmirror/fuzzer

> Fuzzer based on @tsmirror/reflect

Latest version **0.0.2** (published 2020-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsmirror/fuzzer
pnpm add @tsmirror/fuzzer
yarn add @tsmirror/fuzzer
bun add @tsmirror/fuzzer
```

## 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.0.2 |
| Published | 2020-04-15 |
| First published | 2020-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | Romain |
| Maintainers | aenario |

## Links

- npm: https://www.npmjs.com/package/@tsmirror/fuzzer
- Repository: https://github.com/aenario/tsmirror
- Homepage: https://github.com/aenario/tsmirror/tree/master/packages/fuzzer#readme
- Issues: https://github.com/aenario/tsmirror/issues
- npm.io page: https://npm.io/package/@tsmirror/fuzzer

## Dependencies (2)

- [blns](https://npm.io/package/blns.md) ^2.0.4
- [@tsmirror/reflect](https://npm.io/package/@tsmirror/reflect.md) ^0.0.3

## Recent versions

- 0.0.2 (latest) — 2020-04-15
- 0.0.1 — 2020-04-05

## README

# `fuzzer`

Toy fuzzer that calls a function with every possible arguments.

## Usage

```ts
import { reflected } from "@tsmirror/reflect";
import fuzzer from "@tsmirror/fuzzer";
import assert from "assert";

fuzzer((x: string, y: string, z: string) => {
    assert([x, y, z].concat("") === x + y + z, "Unexpected Array.concat behaviour");
})
```

## Note

- For string, it uses the `minimaxir/big-list-of-naughty-strings`
- For numbers, it uses a variety of edge case (0, -1, Infinity, ...)
- Enums are tested with all values
- Object, Interface, Tupple, Union are the cartesian products of their member's possible values.
- Other types are not yet handled

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