https://github.com/lucapasquale/insomnia-plugin-chance
Insomnia Plugin for Chance.JS
https://github.com/lucapasquale/insomnia-plugin-chance
chance insomnia insomnia-plugin random-generation
Last synced: 29 days ago
JSON representation
Insomnia Plugin for Chance.JS
- Host: GitHub
- URL: https://github.com/lucapasquale/insomnia-plugin-chance
- Owner: lucapasquale
- License: mit
- Created: 2018-03-06T00:01:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T13:58:23.000Z (over 4 years ago)
- Last Synced: 2025-04-19T04:16:46.511Z (about 1 month ago)
- Topics: chance, insomnia, insomnia-plugin, random-generation
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Insomnia Plugin - Chance
## Random Value GeneratorGenerates a random value from on [Chance.JS](http://chancejs.com/)
### 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](https://chancejs.com/basics/natural.html), you can pass it as: `min: 1, max: 20`