A tool for generating fault-tree analyses
$ npm install fault-tree
var Fault = require('fault-tree');
var fault = Fault('server failure')
.cause('security compromised')
.cause('resource exhaustion', 'out of disk space OR out of memory')
.cause('hardware failure', 'power failure OR cooling failure OR CPU failure');
console.log(fault.tree); // generated fault tree
Fault tree analysis (FTA) is a methodology for identifying failures in a system using top-down reasoning. The idea is to start at a root description of the problem, and then break that problem down such that the next problem layer down fully describes the problem layer above it.