has-generator

Check if generator functions are supported

Deprecated as this package no longer serves a useful purpose. Generators have long been in browsers and Node.js now. The package will continue to work, I just won't maintain it anymore.
Last updated 8 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install has-generator 
SYNC missed versions from official npm registry.

Deprecated

Deprecated as this package no longer serves a useful purpose. Generators have long been in browsers and Node.js now. The package will continue to work, I just won't maintain it anymore.


has-generator Build Status

Check if generator functions are supported

Install

$ npm install --save has-generator

Usage

const hasGenerator = require('has-generator');
const app = require(hasGenerator ? './with-generator' : './fallback');

License

MIT © Sindre Sorhus

Current Tags

  • 2.0.0                                ...           latest (8 years ago)

2 Versions

  • 2.0.0 [deprecated]           ...           8 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE