https://github.com/spurge/vaguejs
A vague library, that fuzz your tests. Fuzz out your tests with crazy data.
https://github.com/spurge/vaguejs
fuzzy fuzzy-testing nodejs test-driven-development testing
Last synced: 6 months ago
JSON representation
A vague library, that fuzz your tests. Fuzz out your tests with crazy data.
- Host: GitHub
- URL: https://github.com/spurge/vaguejs
- Owner: spurge
- License: mit
- Created: 2018-03-01T23:40:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T21:54:30.000Z (over 8 years ago)
- Last Synced: 2025-09-26T15:43:08.983Z (9 months ago)
- Topics: fuzzy, fuzzy-testing, nodejs, test-driven-development, testing
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vague
[](https://semaphoreci.com/spurge/vaguejs) [](https://codeclimate.com/github/spurge/vaguejs/maintainability) [](https://codeclimate.com/github/spurge/vaguejs/test_coverage)
Vague is a library for generating fuzzy data for testing purposes.
Install with npm: `npm i vague`
## Docs
### Strings
* All char codes: `strings.everything(length?: number): string`
* Latin char codes: `strings.latin(length?: number): string`
### Numbers
* `numbers(max?: number, decimal?: boolean): number`
### JSON
* `json(): string`
This will generate a random json string with random length, depth and with random types of `array`, `number`, `string`, `boolean` and `json`.
This will also randomly generate broken json.