# promisely

> Extra utilities for working with ES6 Promise.

Latest version **0.1.0** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install promisely
pnpm add promisely
yarn add promisely
bun add promisely
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-04-06 |
| First published | 2020-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | davidwu226 |
| Keywords | Promise, async, await, poll, concurrency, lock, semaphore |

## Links

- npm: https://www.npmjs.com/package/promisely
- Repository: https://github.com/davidwu226/promisely
- Issues: https://github.com/davidwu226/promisely/issues
- npm.io page: https://npm.io/package/promisely

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.11.1

## Alternatives

- [@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
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2020-04-06

## README

# promisely

> Extra utilities for working with ES6 Promise.

[![GitHub issues](https://img.shields.io/github/issues-raw/davidwu226/promisely?style=flat)](https://github.com/davidwu226/promisely/promisely)

```typescript
import { Lock, after } from 'promisely'

class Foo {
  lock: Lock

  constructor() {
    this.lock = new Lock()
  }

  async concurrentFunction() {
    this.lock.use(() => {
      await after(1000, () => {
        console.log('this can only run one at a time')
      })
    })
  }
}
```

## 📦 Installation

```bash
npm install promisely
```

## 🚀 Usage

```typescript
import { Lock, after } from 'promisely'
```

## 📖 Docs

[API documentation](/docs/globals.md)

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