npm.io
1.4.3 • Published 5 years ago

insomnia-plugin-chance

Licence
MIT
Version
1.4.3
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
14

Insomnia Plugin - Chance

Random Value Generator

Generates a random value from on Chance.JS

Instalation:

  • Open Insomnia options (Ctrl + , | Cmd + ,)
  • Write insomnia-plugin-chance on the Plugins tab
Args:
  • Type: Select a function from Chance to be executed
  • Custom Function: If selected custom type, it will execute the function named here
  • Options: Arguments you want to pass to your chance function. Because of the way Insomnia handles plugins, you need to pass it as:

argumentName: argumentValue, argumentName2: argumentValue2

For example, with Natural, you can pass it as: min: 1, max: 20