Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-chaos

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-chaos

A simple yet chaotic component to introduce chaos in your Vue app

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-94.12%
Maintainers
1
Weekly downloads
 
Created
Source

🔥💥 vue-chaos 💥🔥

deepcode Known Vulnerabilities

A simple (yet chaotic) component to introduce chaos in your Vue app.

Usage

Install

npm i vue-chaos

Import & use

<template>
        <VueChaos
         :chance="5"
         error-message="My custom error message"
         :run-in-production="false">
          <MyOtherComponent />
        </VueChaos>
</template>
<script>
    import VueChaos from 'vue-chaos';
    ...
    export default {
      ...
      components:{
        VueChaos
      }
    }
</script>

Props

NameTypeDefault valueDescription
chanceNumber5Decides the probability of the wrapper to throw an error;
error-messageString🔥 Chaos emitted by VueChaos 🔥custom error message to throw (i.e. to assert snapshots against)
run-in-productionBooleanfalsea flag to flip if we'd like to cause chaos in production (use at own risk! ☠️)

🔥🐒 Chaos Engineering? 🐒🔥

"Chaos engineering is the discipline of experimenting on a software system in production in order to build confidence in the system's capability to withstand turbulent and unexpected conditions." (wiki)

OK, but why? 🤔

Using the concept of ErrorCaptured in combination with this component can and will improve your apps resilience;

This way you can make sure your app won't behave unexpectedly and will handle everything gracefully, so your customers won't be impacted.

More awesome chaotic tools 🎉

  1. Frontend
    • react-chaos
    • Angular - no need as it's chaotic enough 😏🤭
  2. Other tools:

Keywords

FAQs

Package last updated on 11 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc