# mike-jsutils

> my jsutils

Latest version **1.0.12** (published 2021-08-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install mike-jsutils
pnpm add mike-jsutils
yarn add mike-jsutils
bun add mike-jsutils
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2021-08-09 |
| First published | 2020-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mikewootc |

## Links

- npm: https://www.npmjs.com/package/mike-jsutils
- Repository: https://github.com/mikewootc/jsutils
- Homepage: https://github.com/mikewootc/jsutils#readme
- Issues: https://github.com/mikewootc/jsutils/issues
- npm.io page: https://npm.io/package/mike-jsutils

## Recent versions

- 1.0.12 (latest) — 2021-08-09
- 1.0.11 — 2021-08-05
- 1.0.10 — 2021-07-09
- 1.0.9 — 2020-10-27
- 1.0.8 — 2020-09-16
- 1.0.7 — 2020-05-06
- 1.0.6 — 2020-04-16
- 1.0.5 — 2020-04-15
- 1.0.4 — 2020-04-15
- 1.0.3 — 2020-04-14
- 1.0.2 — 2020-04-13
- 1.0.1 — 2020-04-13

## README

# mike-jsutils

mikewootc's jsutils:

* Promise with timeout


# Install

    npm install mike-jsutils

or:

    yarn add mike-jsutils

# Usage

## Promise with timeout

```js
    const {TimedPromise} = require('mike-jsutils');

    let tp = TimedPromise((resolve, reject) => {
        setTimeout(() => {
            resolve();
        }, 2000);
    }, 1000);
```

Notice: this TimedPromise won't call resolve() again after timeout.

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