Skip to content
/ vaguejs Public

A vague library, that fuzz your tests. Fuzz out your tests with crazy data.

License

Notifications You must be signed in to change notification settings

spurge/vaguejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vague

Build Status Maintainability 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.

About

A vague library, that fuzz your tests. Fuzz out your tests with crazy data.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published