redhanded

Debug your promises value the lazy way 🥳

Usage no npm install needed!

<script type="module">
  import redhanded from 'https://cdn.skypack.dev/redhanded';
</script>

README

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