An open API service indexing awesome lists of open source software.

https://github.com/isthatcentered/red-handed


https://github.com/isthatcentered/red-handed

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Red handed
Debug your promises value the lazy way 🥳

![redhanded debugs your promises values in the prettiest way](./snapshot.jpg)

## Install
```bash
npm install redhanded --save
```
*Note, the typings are included in the package, no need to install @types/...*

## Enjoy
```typescript
import {uncover} from "redhanded"

const thing = stuffThatReturnsAPromise()
.then(res => saveUser(res, thing))

.then(uncover("AfterUserSaved")) // Logs the value it gets and returns it

.then(resultOfSaveUser => doOtherStuff(resultOfSaveUser))

```