1.0.2 • Published 5 years ago

redhanded v1.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

Red handed

Debug your promises value the lazy way 🥳

redhanded debugs your promises values in the prettiest way

Install

npm install redhanded --save  

Note, the typings are included in the package, no need to install @types/...

Enjoy

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