# wait-sync

> a simple synchronous wait module

Latest version **1.0.1** (published 2016-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install wait-sync
pnpm add wait-sync
yarn add wait-sync
bun add wait-sync
```

## 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.1 |
| Published | 2016-10-24 |
| First published | 2016-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Uri Chandler |
| Maintainers | ujc |
| Keywords | sync, synchronous, wait, sleep |

## Links

- npm: https://www.npmjs.com/package/wait-sync
- Repository: https://github.com/ujc/wait-sync
- Homepage: https://github.com/ujc/wait-sync#readme
- Issues: https://github.com/ujc/wait-sync/issues
- npm.io page: https://npm.io/package/wait-sync

## Dependencies (1)

- [deasync](https://npm.io/package/deasync.md) ^0.1.8

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

- 1.0.1 (latest) — 2016-10-24
- 1.0.0 — 2016-10-24

## README

[![Build Status](https://travis-ci.org/ujc/wait-sync.svg?branch=master)](https://travis-ci.org/ujc/wait-sync)

# wait-sync
a simple **non-blocking-yet-synchronous** **`wait(seconds)`** module


---
## Install
```
npm install sync-rest-client
```


---
## Usage
```javascript
const waitSync = require('wait-sync');

console.log(1);

// setTimeout is async - but that's ok - since
// waitSync is non-blocking
setTimeout(() => console.log(2), 1000);

waitSync(1.5); // wait 1.5 seconds - !synchronously!

console.log(3);

// outputs 1, 2, and then 3 (as expected)
```


---
## Test
```
npm run test
```


---
## Related
* [deasync](https://www.npmjs.com/package/deasync)

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