New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details → →
Socket
Book a DemoSign in
Socket

redhanded

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redhanded

Debug your promises value the lazy way 🥳

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

promise-debug

FAQs

Package last updated on 08 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts