# has-generators

> feature-detect generators

Latest version **1.0.1** (published 2015-01-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install has-generators
pnpm add has-generators
yarn add has-generators
bun add has-generators
```

## 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 | 2015-01-21 |
| First published | 2015-01-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | generators, es6, feature-detection |

## Links

- npm: https://www.npmjs.com/package/has-generators
- Repository: https://gist.github.com/nathan7/53031bbfdf884ba2817a
- Issues: https://gist.github.com/nathan7/53031bbfdf884ba2817a
- npm.io page: https://npm.io/package/has-generators

## Recent versions

- 1.0.1 (latest) — 2015-01-21
- 1.0.0 — 2015-01-21

## README

# has-generators

  feature-detect generators.

## Installation

    npm install has-generators

## API
### require('has-generators') -> Boolean

  * true: Your runtime supports generators! Sweet!
  * false: Your runtime doesn't support generators, aww :(

## Example

```javascript
// foo.js
module.exports = require('has-generators') ? require('./foo.es6') : require('./foo.es5')
```

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