2.0.0 • Published 5 years ago
has-generator v2.0.0
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
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