JSPM

has-generator

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 98
  • Score
    100M100P100Q16641F
  • License MIT

Check if generator functions are supported

Package Exports

  • has-generator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (has-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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