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 7 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (7 years ago)

2 Versions

  • 2.0.0 [deprecated]           ...           7 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |