https://github.com/isthatcentered/red-handed
https://github.com/isthatcentered/red-handed
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isthatcentered/red-handed
- Owner: isthatcentered
- Created: 2019-03-08T20:30:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T03:35:46.000Z (over 5 years ago)
- Last Synced: 2025-03-18T13:29:00.182Z (about 1 year ago)
- Language: JavaScript
- Size: 1.08 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Red handed
Debug your promises value the lazy way 🥳

## 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))
```