# gen-djinn

> It utility tool for wrapping generators for complete execution without calling next everytime.

Latest version **1.0.1** (published 2017-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install gen-djinn
pnpm add gen-djinn
yarn add gen-djinn
bun add gen-djinn
```

## 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 | 2017-03-04 |
| First published | 2017-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.8.4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rohail Najam |
| Maintainers | rohail |
| Keywords | node, express, node.js, generators, wrappers, functions, yield, javascript, es6 |

## Links

- npm: https://www.npmjs.com/package/gen-djinn
- Repository: https://github.com/Rohail1/gen-djinn
- Homepage: https://github.com/Rohail1/gen-djinn#readme
- Issues: https://github.com/Rohail1/gen-djinn/issues
- npm.io page: https://npm.io/package/gen-djinn

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-03-04
- 1.0.0 — 2017-03-04

## README

# generator-wrapper
It's utility for wrapping generators for complete executiong without calling next everytime.
##Installation

`npm install gen-djinn --save`

### How to use

```javascript
    let genDjinn = require('gen-djinn'); 
    
    let genSum = function*(num1,num2) {
      let number =  yield num1;
      let number2 =  yield num2;
      let result = yield number + number2;
      return result;
    };

    let gen = genDjinn(genSum);
    
    let result  = gen(2,4);  // result = 6;
```
###Tests

  `npm test`

###Issues

Create an issue if there are any bugs. 


### For Any Queries

Feel free to contact me via [email](mailto:rohail@lumous.pk) or on my website [lumous.pk](http://lumous.pk)

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