{"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":{"integrity":"sha512-Kn+4AXo1HHewGjikHNfxCFv58+XGeXAalWE5Ci1bgm/DkmDte9zFyqMn6xrzQKCgyhefxz9I8rseWUGI0jSecQ==","shasum":"196814cf2e44a75212d34c12f3ce6f43a7821e7c","tarball":"http://registry-npm.ywwl.com/is-generator-fn/download/is-generator-fn-3.0.0.tgz","fileCount":5,"unpackedSize":2918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE8a/CRA9TVsSAnZWagAAekUP+QCIPyj202RibdAU9lr+\nJYpqRu5gWCtC2C17DmcmvKaTncrdjvwugJskQYvtInEszUDQohAK7o0s2gtw\nO/SDdDc6Q6N8xpCaEOiauWCgMBHfS8rPDpu3Ha56gImiAHfVjE2VzJLEenir\nJ1RxvS62IDe1BelS3GquPj+bMSMr+HdHpQYSKz04XfzIUwODgF6wkbq1tbln\n4ieKauskLPr+Osr2zG56Eck+neL8z7YvI5BSSZsM6FrYyG4mMAELUZpnftSG\np5AVSX+gwSSA3aLG/1g8sH2zu5SRrR+8zJIrPdiZuudCSJDsnABB7NmCeaDc\nbxceBeNkmqxv/kT/bB99a2EAiQ1v+7WO5fzLD0v4g9+rFy6x22Xb7nPpbfbp\nqvWGAtH1UNHqQ4P+H2Sm4j/LEwLi8UbSwpbv0zaHwy+OgWoeBvdlA3Pp+qpQ\nufrvIsjljo7ByCfK6Blaxjc8yOu8qxEUuFrm4jBvniOUUMT0zP7yveqprBTY\nMuwVEVFr4ytgTgARqYaJv84GOtbXvtf+GSJEGC2SlAq/AZOCyso+3jQiIe7H\nu0xRAAzHi5yeep97taHttxhp30bXhHxgk8VbR27veTm0GPdykcsPNdnhArP1\n0RNGG6uf2G4WgeqdpKLxJ7LpSYFOhwBToSA+oNVMiWhX9RI+gpwKSi1eAXmk\n5WQ0\r\n=YeHv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0Vp47c+ANnln6M8sfzTtmAXi5MxYWQMCMv0S6PJpekwIgBS9D8Ll/fal5Btq6uUiPUnQKlPEvayMnFEVmyU1ZqXU="}],"size":1585,"noattachment":false,"key":"/is-generator-fn/-/is-generator-fn-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-generator-fn_3.0.0_1628686015543_0.7798368784710901"},"_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","publish_time":1628686015710,"_cnpm_publish_time":1628686015710,"dist-tags":{"latest":"3.0.0"}}