{"id":17807424,"url":"https://github.com/inspect-js/is-generator-function","last_synced_at":"2025-04-08T04:14:10.561Z","repository":{"id":13984540,"uuid":"16685473","full_name":"inspect-js/is-generator-function","owner":"inspect-js","description":"Is this an ES6 generator function?","archived":false,"fork":false,"pushed_at":"2025-01-02T18:19:02.000Z","size":165,"stargazers_count":49,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-01T03:34:26.202Z","etag":null,"topics":["function","generator","is","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2014-02-10T05:31:39.000Z","updated_at":"2025-01-02T18:19:06.000Z","dependencies_parsed_at":"2025-04-01T03:31:05.979Z","dependency_job_id":"fa345875-14cc-447d-b205-8ea37b831e44","html_url":"https://github.com/inspect-js/is-generator-function","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-generator-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-generator-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-generator-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fis-generator-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/is-generator-function/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773719,"owners_count":20993639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["function","generator","is","javascript"],"created_at":"2024-10-27T14:04:22.001Z","updated_at":"2025-04-08T04:14:10.543Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","readme":"# is-generator-function \u003csup\u003e[![Version Badge][2]][1]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\nIs this a native generator function?\n\n## Example\n\n```js\nvar isGeneratorFunction = require('is-generator-function');\nassert(!isGeneratorFunction(function () {}));\nassert(!isGeneratorFunction(null));\nassert(isGeneratorFunction(function* () { yield 42; return Infinity; }));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-generator-function\n[2]: https://versionbadg.es/inspect-js/is-generator-function.svg\n[5]: https://david-dm.org/inspect-js/is-generator-function.svg\n[6]: https://david-dm.org/inspect-js/is-generator-function\n[7]: https://david-dm.org/inspect-js/is-generator-function/dev-status.svg\n[8]: https://david-dm.org/inspect-js/is-generator-function#info=devDependencies\n[11]: https://nodei.co/npm/is-generator-function.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/is-generator-function.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/is-generator-function.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=is-generator-function\n[codecov-image]: https://codecov.io/gh/inspect-js/is-generator-function/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/is-generator-function/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-generator-function\n[actions-url]: https://github.com/inspect-js/is-generator-function/actions\n","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-generator-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fis-generator-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fis-generator-function/lists"}