Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resolvable-promise

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolvable-promise - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "resolvable-promise",
"version": "1.0.1",
"version": "1.0.2",
"description": "Promises with the resolve and reject functions exposed",

@@ -5,0 +5,0 @@ "main": "index.js",

# resolvable-promise
I've found that for the majority of projects I keep needing to rewrite or copy-paste the same small piece of code,
a function that creates a promise with the resolve and reject functions exposed. This repository is that small snippet
a function that creates a promise with the resolve and reject functions exposed. This project is that small snippet
of code, created mostly for my own convenience.

@@ -32,3 +32,3 @@

```
Will now resolve...
Resolving...
Resolved!

@@ -40,3 +40,3 @@ ```

### Arguments
You can optionally provide `makeResolvable` with an callback just like a promise:
You can optionally provide `makeResolvable` with an executor callback just like a promise:
```javascript

@@ -43,0 +43,0 @@ const resolvable = makeResolvable((resolve, reject) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc