frenzie
v0.0.1-0
Published
Make your node do crazy things.
Downloads
17
Maintainers
Readme
Table of Contents:
Configuration
Put your config into a JSON file called .frenzierc
file in your project root.
Each supported module must be explicitly enabled. The name of
the module should be used as the key in the configuration object. For example, to enable
mongodb
, your config file should be:
{
"mongodb": true
}
And to set specific configuration values:
{
"mongodb": {
"enabled": true,
"my-config-key": "some-value"
}
}
For the possible configurations for each module, see the table below:
| Option name | Default | Possible values | Description |
|-------------|---------|--------------------|-----------------------------------------------------|
| enabled
| false
| true
, false
| Specifies whether to enable chaos for given module. |
| threshold
| 0.5
| any number below 1 | The probability of something chaotic occuring. |
| maxDelay
| 100
| any number | Maximum amount of time to wait before actually doing something. Only used for asynchronous methods. |
| maxTicks
| 1e9
| any number | Maximum number to synchronously count up to before actually doing something. Only used for sychronous methods. Warning: this is done using a for(;;);
- it's going to hang the entire event loop. |
Supported Modules
License
Licensed under MIT license.
Copyright © 2018-present Karim Alibhai.