# timeout-then

> setTimeout as promised

Latest version **2.0.0** (published 2020-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install timeout-then
pnpm add timeout-then
yarn add timeout-then
bun add timeout-then
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-07-04 |
| First published | 2014-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Jonathan Ong |
| Maintainers | coderhaoxin, jongleberry |
| Keywords | settimeout, timeout, promise, then |

## Links

- npm: https://www.npmjs.com/package/timeout-then
- Repository: https://github.com/thenables/timeout-then
- Homepage: https://github.com/thenables/timeout-then#readme
- Issues: https://github.com/thenables/timeout-then/issues
- npm.io page: https://npm.io/package/timeout-then

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

- 2.0.0 (latest) — 2020-07-04
- 1.1.0 — 2016-08-03
- 1.0.0 — 2014-12-15

## README

# timeout-then

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

`setTimeout` as a promise.

```js
const timeout = require('timeout-then');

timeout(100).then(function () {
  console.log('blah');
});

// clear timeout
let timer = timeout(100);
timer.then(function () {
  console.log('blah');
});
timer.clear();
```

[gitter-image]: https://badges.gitter.im/thenables/timeout-then.png
[gitter-url]: https://gitter.im/thenables/timeout-then
[npm-image]: https://img.shields.io/npm/v/timeout-then.svg?style=flat-square
[npm-url]: https://npmjs.org/package/timeout-then
[github-tag]: http://img.shields.io/github/tag/thenables/timeout-then.svg?style=flat-square
[github-url]: https://github.com/thenables/timeout-then/tags
[travis-image]: https://img.shields.io/travis/thenables/timeout-then.svg?style=flat-square
[travis-url]: https://travis-ci.org/thenables/timeout-then
[coveralls-image]: https://img.shields.io/coveralls/thenables/timeout-then.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/thenables/timeout-then
[david-image]: http://img.shields.io/david/thenables/timeout-then.svg?style=flat-square
[david-url]: https://david-dm.org/thenables/timeout-then
[license-image]: http://img.shields.io/npm/l/timeout-then.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/timeout-then.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/timeout-then

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