# over-armour

> Protect functions and classes from crashes

Latest version **0.1.2** (published 2017-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install over-armour
pnpm add over-armour
yarn add over-armour
bun add over-armour
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-12-01 |
| First published | 2017-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Gant |
| Maintainers | gantman |

## Links

- npm: https://www.npmjs.com/package/over-armour
- Repository: https://github.com/infinitered/over-armour
- Homepage: https://github.com/infinitered/over-armour#readme
- Issues: https://github.com/infinitered/over-armour/issues
- npm.io page: https://npm.io/package/over-armour

## Recent versions

- 0.1.2 (latest) — 2017-12-01
- 0.1.1 — 2017-12-01

## README

<p align="center">
  <img src="/_art/oa2.jpg" width="300px" />
</p>

# Protect Functions and Classes from Crashes in Prod

[![npm version](https://badge.fury.io/js/over-armour.svg)](https://badge.fury.io/js/over-armour)

### Wrap an entire class in try/catch

Quickly protect an entire class from causing an exception with `fortify` method

_Example Protection:_
```js
const iCanError = new CrashyApi()
const protector = new OverArmour()

// for PROD!
protector.fortify(iCanError) 

iCanError.failSauce('I will fail but not crash')
console.log('Still got here!')

const workingWithAsync = async () => {
  await iCanError.failSauceAsync('No try catches existed here!')
  console.log('Got here, too!')
}
workingWithAsync()

console.log('EOF!')
```

---
_Source: https://npm.io/package/over-armour · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
