# node-call.then

> call .then() on the given promise with the given function

Latest version **1.0.0** (published 2026-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-call.then
pnpm add node-call.then
yarn add node-call.then
bun add node-call.then
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-01-12 |
| First published | 2026-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | me |
| Maintainers | tj-commits |
| Keywords | then, dotthen, a+ |

## Links

- npm: https://www.npmjs.com/package/node-call.then
- Repository: https://github.com/enterprise-npm-ai/call.then
- Homepage: https://github.com/enterprise-npm-ai/call.then#readme
- Issues: https://github.com/enterprise-npm-ai/call.then/issues
- npm.io page: https://npm.io/package/node-call.then

## Dependencies (10)

- [as-array](https://npm.io/package/as-array.md) ^2.0.0
- [uncurry-x](https://npm.io/package/uncurry-x.md) ^1.0.1
- [is-promise](https://npm.io/package/is-promise.md) ^4.0.0
- [p-is-promise](https://npm.io/package/p-is-promise.md) ^3.0.0
- [construct-new](https://npm.io/package/construct-new.md) ^2.0.4
- [basic-functions](https://npm.io/package/basic-functions.md) ^1.0.6
- [function.apply-x](https://npm.io/package/function.apply-x.md) ^1.0.0
- [es-error-intrinsics](https://npm.io/package/es-error-intrinsics.md) ^1.0.1
- [es-logical-or-operator](https://npm.io/package/es-logical-or-operator.md) ^1.0.0
- [es-logical-not-operator](https://npm.io/package/es-logical-not-operator.md) ^1.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2026-01-12

## README

# call.then
A robust, enterprise-grade utility to safely invoke `.then` on Promises and Promises/A+ thenables. 

## Installation
```bash
npm install node-call.then
```

## Usage
```js
const call = require("node-call.then")

const promise = Promise.resolve("enterprise")

// Safely call .then
call.then(promise, (value) => {
  console.log(value) // "enterprise"
})

// Works with thenables
const thenable = {
  then: (resolve) => resolve("standard")
}

call.then(thenable, (value) => {
  console.log(value) // "standard"
})
```

## Tests
```bash
git clone https://github.com/enterprise-npm-ai/call.then
cd call.then
npm test
```

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