# quick-resolve

> A Synchronous Promise.resolve. Preserve Sync/Async. Only Go Async If Necessary.

Latest version **0.0.1** (published 2021-11-05) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install quick-resolve
pnpm add quick-resolve
yarn add quick-resolve
bun add quick-resolve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-11-05 |
| First published | 2021-11-05 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | async, promise, resolve, sync |

## Links

- npm: https://www.npmjs.com/package/quick-resolve
- Repository: https://github.com/DanielJDufour/quick-resolve
- Homepage: https://github.com/DanielJDufour/quick-resolve#readme
- Issues: https://github.com/DanielJDufour/quick-resolve/issues
- npm.io page: https://npm.io/package/quick-resolve

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2021-11-05

## README

# quick-resolve
A Synchronous Promise.resolve.  Preserve Sync/Async.  Only Go Async If Necessary.

# install
```bash
npm install quick-resolve
```

# usage
```js
import quickResolve from "quick-resolve";

let resolved = false;
quickResolve(1).then(num => (resolved = true));
// resolved is true

let resolved = false;
quickResolve(fetch(url)).then(response => (resolved = true));
// resolved is false

let resolved = false;
await quickResolve(fetch(url)).then(response => (resolved = true));
// resolved is true
```

---
_Source: https://npm.io/package/quick-resolve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
