{"_id":"is-generator-fn","_rev":"521041","name":"is-generator-fn","description":"Check if something is a generator function","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-11T12:50:46.000Z","created":"2015-11-15T16:28:23.204Z","3.0.0":"2021-08-11T12:46:55.710Z","2.1.0":"2019-04-06T11:20:38.862Z","2.0.0":"2018-12-29T15:18:25.744Z","1.0.0":"2015-11-15T16:28:23.204Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-generator-fn.git"},"versions":{"3.0.0":{"name":"is-generator-fn","version":"3.0.0","description":"Check if something is a generator function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-generator-fn.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["generator","function","func","fn","is","check","detect","yield","type"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"346a838d9c4bb5fcf68673bbbedb8746e9dffef4","bugs":{"url":"https://github.com/sindresorhus/is-generator-fn/issues"},"homepage":"https://github.com/sindresorhus/is-generator-fn#readme","_id":"is-generator-fn@3.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.10.0","dist":{"shasum":"196814cf2e44a75212d34c12f3ce6f43a7821e7c","size":1585,"noattachment":false,"key":"/is-generator-fn/-/is-generator-fn-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-generator-fn/download/is-generator-fn-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-generator-fn_3.0.0_1628686015543_0.7798368784710901"},"_hasShrinkwrap":false,"publish_time":1628686015710,"_cnpm_publish_time":1628686015710},"2.1.0":{"name":"is-generator-fn","version":"2.1.0","description":"Check if something is a generator function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-generator-fn.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["generator","function","func","fn","is","check","detect","yield","type"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"223059ea49e662e9811270912517db26eb4bdc80","bugs":{"url":"https://github.com/sindresorhus/is-generator-fn/issues"},"homepage":"https://github.com/sindresorhus/is-generator-fn#readme","_id":"is-generator-fn@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7d140adc389aaf3011a8f2a2a4cfa6faadffb118","size":1762,"noattachment":false,"key":"/is-generator-fn/-/is-generator-fn-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-generator-fn/download/is-generator-fn-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-generator-fn_2.1.0_1554549638713_0.5193523673699398"},"_hasShrinkwrap":false,"publish_time":1554549638862,"_cnpm_publish_time":1554549638862},"2.0.0":{"name":"is-generator-fn","version":"2.0.0","description":"Check if something is a generator function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-generator-fn.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["generator","function","func","fn","is","check","detect","yield","type"],"devDependencies":{"ava":"^1.0.1","tsd-check":"^0.3.0","xo":"^0.23.0"},"gitHead":"a75455cb94ee9541b2025fd3c41e4350c0495e13","bugs":{"url":"https://github.com/sindresorhus/is-generator-fn/issues"},"homepage":"https://github.com/sindresorhus/is-generator-fn#readme","_id":"is-generator-fn@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"038c31b774709641bda678b1f06a4e3227c10b3e","size":1627,"noattachment":false,"key":"/is-generator-fn/-/is-generator-fn-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-generator-fn/download/is-generator-fn-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-generator-fn_2.0.0_1546096705561_0.7863427559745162"},"_hasShrinkwrap":false,"publish_time":1546096705744,"_cnpm_publish_time":1546096705744},"1.0.0":{"name":"is-generator-fn","version":"1.0.0","description":"Check if something is a generator function","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-generator-fn"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["generator","gen","function","func","fn","is","check","detect","yield"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"0ba5937996916914a50e519e9dff2a0cf58c5974","bugs":{"url":"https://github.com/sindresorhus/is-generator-fn/issues"},"homepage":"https://github.com/sindresorhus/is-generator-fn","_id":"is-generator-fn@1.0.0","_shasum":"969d49e1bb3329f6bb7f09089be26578b2ddd46a","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"969d49e1bb3329f6bb7f09089be26578b2ddd46a","size":1546,"noattachment":false,"key":"/is-generator-fn/-/is-generator-fn-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-generator-fn/download/is-generator-fn-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447604903204,"_cnpm_publish_time":1447604903204,"_hasShrinkwrap":false}},"readme":"# is-generator-fn\n\n> Check if something is a [generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)\n\n## Install\n\n```\n$ npm install is-generator-fn\n```\n\n## Usage\n\n```js\nimport isGeneratorFunction from 'is-generator-fn';\n\nisGeneratorFunction(function * () {});\n//=> true\n\nisGeneratorFunction(function () {});\n//=> false\n```\n\n## Related\n\n- [is](https://github.com/sindresorhus/is) - Type check values\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-generator-fn#readme","bugs":{"url":"https://github.com/sindresorhus/is-generator-fn/issues"},"license":"MIT"}