# synca

Latest version **0.0.1** (published 2022-10-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-10-19 |
| First published | 2022-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wan2land |

## Links

- npm: https://www.npmjs.com/package/synca
- Repository: https://github.com/denostack/synca
- Homepage: https://github.com/denostack/synca#readme
- Issues: https://github.com/denostack/synca/issues
- npm.io page: https://npm.io/package/synca

## Recent versions

- 0.0.1 (latest) — 2022-10-19
- 0.0.0 — 2022-10-18

## README

# synca

<p>
  <a href="https://npmcharts.com/compare/synca?minimal=true"><img alt="Downloads" src="https://img.shields.io/npm/dt/synca.svg?style=flat-square" /></a>
  <a href="https://www.npmjs.com/package/synca"><img alt="Version" src="https://img.shields.io/npm/v/synca.svg?style=flat-square" /></a>
  <a href="https://www.npmjs.com/package/synca"><img alt="License" src="https://img.shields.io/npm/l/synca.svg?style=flat-square" /></a>
  <img alt="Language Typescript" src="https://img.shields.io/badge/language-Typescript-007acc.svg?style=flat-square" />
</p>

## Usage

### with Deno

```ts
import { concurrent } from "https://deno.land/x/synca/mod.ts";

const co = concurrent(4 /* concurrency */);

for (let i = 0; i < 100; i++) {
  await co.run(async () => {
    await fetch(`https://something/articles/${i}`);
  });
}

await co.wait(); // remain works..
```

### with Node.js & Browser

**Install**

```bash
npm install synca
```

```ts
import { concurrent } from "synca";

// Usage is as above :-)
```

## Related

- [promise-fun](https://github.com/sindresorhus/promise-fun)

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