0.0.1-0 • Published 6 years ago

frenzie v0.0.1-0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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 nameDefaultPossible valuesDescription
enabledfalsetrue, falseSpecifies whether to enable chaos for given module.
threshold0.5any number below 1The probability of something chaotic occuring.
maxDelay100any numberMaximum amount of time to wait before actually doing something. Only used for asynchronous methods.
maxTicks1e9any numberMaximum 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.