{"_id":"is-es6-generator-function","_rev":"2764807","name":"is-es6-generator-function","description":"Check that given value is `GeneratorFunction`","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"time":{"modified":"2022-04-02T08:53:49.000Z","created":"2015-05-26T04:14:10.872Z","1.0.0":"2015-05-26T04:14:10.872Z"},"users":{},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"repository":{"type":"git","url":"git+https://github.com/tunnckocore/is-es6-generator-function.git"},"versions":{"1.0.0":{"name":"is-es6-generator-function","version":"1.0.0","description":"Check that given value is `GeneratorFunction`","repository":{"type":"git","url":"git+https://github.com/tunnckocore/is-es6-generator-function.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"is-generator-function-name":"~1.0.0"},"devDependencies":{"assertit":"^0.1.0"},"keywords":["check","es2015","es6","es7","function","functions","generator","generatorfunction","generators","is","is-function","is-generator","is-generator-function","next","validate"],"gitHead":"bc5e8fa812eca235397863ec43c3fba4a81661a1","bugs":{"url":"https://github.com/tunnckocore/is-es6-generator-function/issues"},"homepage":"https://github.com/tunnckocore/is-es6-generator-function#readme","_id":"is-es6-generator-function@1.0.0","_shasum":"fb7f8ca143d90b63d248fb30a396f6f79aa5db7b","_from":".","_npmVersion":"2.10.0","_nodeVersion":"2.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"fb7f8ca143d90b63d248fb30a396f6f79aa5db7b","size":4467,"noattachment":false,"key":"/is-es6-generator-function/-/is-es6-generator-function-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-es6-generator-function/download/is-es6-generator-function-1.0.0.tgz"},"directories":{},"publish_time":1432613650872,"_hasShrinkwrap":false,"_cnpm_publish_time":1432613650872,"_cnpmcore_publish_time":"2021-12-16T19:55:20.554Z"}},"readme":"# is-es6-generator-function [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> Check that given value is `GeneratorFunction`\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i is-es6-generator-function --save\nnpm test\n```\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nvar isGeneratorFunction = require('is-es6-generator-function')\n\nvar generator = (function * () {})()\nvar genFunction = function * () { yield 42 }\n\nisGeneratorFunction(null) //=> false\nisGeneratorFunction(undefined) //=> false\nisGeneratorFunction(42) //=> false\nisGeneratorFunction('foo') //=> false\nisGeneratorFunction(function fn () {}) //=> false\nisGeneratorFunction(genFunction) //=> true\nisGeneratorFunction(generator) //=> false\n```\n\n\n## See also\n- [apidocs-cli](https://github.com/tunnckocore/apidocs-cli): Async CLI for automatically generating API docs from code comments\n- [is-es6-generators](https://github.com/tunnckocore/is-es6-generators): Check whether a value is a generator or generator function.\n- [is-es6-generator](https://github.com/tunnckocore/is-es6-generator): Check that given value is `Generator`\n- [is-generator-function-name](https://github.com/tunnckocore/is-generator-function-name): Check that given value have `GeneratorFunction` name… [more](https://github.com/tunnckocore/is-generator-function-name).\n- [is-generator-function](https://github.com/ljharb/is-generator-function): Determine if a function is an ES6 generator function or not.\n- [is-generator](https://github.com/blakeembrey/is-generator): Check whether a value is a generator or generator function\n- [is-hybrid](https://github.com/hybridables/is-hybrid): Check whether an object looks like Hybrid which is promises-a+ promise and callback api\n- [is-promise](https://github.com/then/is-promise): Test whether an object looks like a promises-a+ promise\n- [is-missing](https://github.com/tunnckoCore/is-missing): Check that given `name` or `user/repo` exists in npm registry or in github as… [more](https://github.com/tunnckoCore/is-missing)\n- [is-installed](https://github.com/tunnckoCore/is-installed): Checks that given package is installed on the system - globally or locally.\n- [is-kindof](https://github.com/tunnckoCore/is-kindof): Thin wrapper around `kind-of` and in bonus functional api.\n- [npm-related](https://github.com/tunnckoCore/npm-related): Thin wrapper on top of `helper-related` for generating a list of links to the… [more](https://github.com/tunnckoCore/npm-related)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/is-es6-generator-function/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/is-es6-generator-function\n[npmjs-img]: https://img.shields.io/npm/v/is-es6-generator-function.svg\n\n[license-url]: https://github.com/tunnckoCore/is-es6-generator-function/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/is-es6-generator-function\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/is-es6-generator-function.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/is-es6-generator-function\n[travis-img]: https://img.shields.io/travis/tunnckoCore/is-es6-generator-function.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/is-es6-generator-function\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/is-es6-generator-function.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/is-es6-generator-function\n[david-img]: https://img.shields.io/david/tunnckoCore/is-es6-generator-function.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/messages\n[new-message-img]: https://img.shields.io/badge/send%20me-message-green.svg\n","_attachments":{},"homepage":"https://github.com/tunnckocore/is-es6-generator-function#readme","bugs":{"url":"https://github.com/tunnckocore/is-es6-generator-function/issues"},"license":"MIT"}