Skip to content

isthatcentered/red-handed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published