# @hlobka/async-time-unit

> Package with async time unit tools

Latest version **1.0.5** (published 2023-10-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hlobka/async-time-unit
pnpm add @hlobka/async-time-unit
yarn add @hlobka/async-time-unit
bun add @hlobka/async-time-unit
```

## 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 | 1.0.5 |
| Published | 2023-10-29 |
| First published | 2023-10-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hlobka |
| Maintainers | hlobka |
| Keywords | time, unit, async, await, awaiter |

## Links

- npm: https://www.npmjs.com/package/@hlobka/async-time-unit
- Repository: https://github.com/hlobka/async-time-unit
- Homepage: https://github.com/hlobka/async-time-unit#readme
- Issues: https://github.com/hlobka/async-time-unit/issues
- npm.io page: https://npm.io/package/@hlobka/async-time-unit

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2023-10-29
- 1.0.4 — 2023-10-29
- 1.0.1 — 2023-10-29
- 1.0.2 — 2023-10-29

## README

# async-time-unit
async-time-unit - is a simple lib with async time units and duration accessibility.

## Installation:
As a dependency in your npm package:
- `npm install @hlobka/async-time-unit`

Examples:
- Awaiter in 10 seconds:
  - `await promiseDelay(10, TimeUnit.sec);`
  - `await TimeUnit.sec.await(10)`
  - `await Duration.sec(10).await();`
- Awaiter till something happened:
  - Await in 1 minute till element appears with interval to check in 100 mls:
    - `await promise.in(Duration.min(1)).tobe(() => document.getElementById("id") != null, Duration.mls(100))`

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