# @feizheng/next-loop-execute

> Loop execute for next.

Latest version **1.0.4** (published 2020-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/next-loop-execute
pnpm add @feizheng/next-loop-execute
yarn add @feizheng/next-loop-execute
bun add @feizheng/next-loop-execute
```

## 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.4 |
| Published | 2020-07-08 |
| First published | 2020-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |

## Links

- npm: https://www.npmjs.com/package/@feizheng/next-loop-execute
- Homepage: https://github.com/afeiship/next-loop-execute
- npm.io page: https://npm.io/package/@feizheng/next-loop-execute

## Dependencies (1)

- [@feizheng/next-js-core2](https://npm.io/package/@feizheng/next-js-core2.md) ^2.6.0

## Recent versions

- 1.0.4 (latest) — 2020-07-08
- 1.0.3 — 2020-07-08
- 1.0.2 — 2020-07-08
- 1.0.1 — 2020-07-08
- 1.0.0 — 2020-07-08

## README

# next-loop-execute
> Loop execute for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @feizheng/next-loop-execute
```

## usage
```js
import '@feizheng/next-loop-execute';

const fetchApi = function ({ count }) {
  return fetch('https://api.github.com/users/afeiship').then(res=>res.json());
}

// loop 3 times:
nx.loopExecute({
  callback: fetchApi,
  done: function (res) {
    console.log('res.data:', res.data);
    return res.count === 3;
  }
}).then(res=>{
  console.log('loop DONE!', res);
});
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-loop-execute/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/next-loop-execute
[version-url]: https://npmjs.org/package/@feizheng/next-loop-execute

[license-image]: https://img.shields.io/npm/l/@feizheng/next-loop-execute
[license-url]: https://github.com/afeiship/next-loop-execute/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-loop-execute
[size-url]: https://github.com/afeiship/next-loop-execute/blob/master/dist/next-loop-execute.min.js

[download-image]: https://img.shields.io/npm/dm/@feizheng/next-loop-execute
[download-url]: https://www.npmjs.com/package/@feizheng/next-loop-execute

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