Check if generator functions are supported
$ cnpm 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
Copyright 2013 - present © cnpmjs.org | Home |