Check if generator functions are supported
$ npm install has-generator
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.
Check if generator functions are supported
$ npm install --save has-generator
const hasGenerator = require('has-generator');
const app = require(hasGenerator ? './with-generator' : './fallback');
MIT © Sindre Sorhus
© 2010 - cnpmjs.org x YWFE | Home | YWFE