# promise-make-naked

> A simple function that makes a promise that can be resolved, rejected or introspected from the outside.

Latest version **3.0.2** (published 2025-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-make-naked
pnpm add promise-make-naked
yarn add promise-make-naked
bun add promise-make-naked
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2025-01-11 |
| First published | 2021-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | fabiospampinato |
| Keywords | promise, naked, resolvers |

## Links

- npm: https://www.npmjs.com/package/promise-make-naked
- Repository: https://github.com/fabiospampinato/promise-make-naked
- Homepage: https://github.com/fabiospampinato/promise-make-naked#readme
- Issues: https://github.com/fabiospampinato/promise-make-naked/issues
- npm.io page: https://npm.io/package/promise-make-naked

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.0.2 (latest) — 2025-01-11
- 3.0.1 — 2025-01-11
- 3.0.0 — 2024-06-30
- 2.1.2 — 2024-04-04
- 2.1.1 — 2023-08-11
- 2.1.0 — 2023-08-11
- 2.0.0 — 2022-04-07
- 1.0.0 — 2021-03-26

## README

# Promise Make Naked

A simple function that makes a promise that can be resolved, rejected or introspected from the outside.

## Install

```sh
npm install --save promise-make-naked
```

## Usage

```ts
import makeNakedPromise from 'promise-make-naked';

// Let's create a naked Promise

const {promise, resolve, reject, isPending, isResolved, isRejected} = makeNakedPromise ();

resolve ( 123 ); // Resolve the promise with the provided value
reject ( new Error () ); // Reject the promise with the provided reason

isPending (); // Check if the promise is still pending
isResolved (); // Check if the promise got resolved
isRejected (); // Check if the promise got rejected
```

## License

MIT © Fabio Spampinato

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