frenzie

0.0.1-0 • Public • Published

FRENZIE

Run chaos stuff in Node.js.

Travis CI chaotic: very

node --require frenzie index.js

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1-0
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1-0
    12
  • 0.0.0
    0

Package Sidebar

Install

npm i frenzie

Weekly Downloads

12

Version

0.0.1-0

License

MIT

Unpacked Size

270 kB

Total Files

63

Last publish

Collaborators

  • karimsa