has-generators
feature-detect generators
Last updated 11 years ago by nathan7 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install has-generators 
SYNC missed versions from official npm registry.

has-generators

feature-detect generators.

Installation

npm install has-generators

API

require('has-generators') -> Boolean

  • true: Your runtime supports generators! Sweet!
  • false: Your runtime doesn't support generators, aww :(

Example

// foo.js
module.exports = require('has-generators') ? require('./foo.es6') : require('./foo.es5')

Current Tags

  • 1.0.1                                ...           latest (11 years ago)

2 Versions

  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |