{"id":26611642,"url":"https://github.com/shadeglare/genum","last_synced_at":"2026-04-13T13:32:47.901Z","repository":{"id":57249698,"uuid":"107021765","full_name":"shadeglare/genum","owner":"shadeglare","description":"The ES Next tools to process data in a LINQ manner","archived":false,"fork":false,"pushed_at":"2019-04-14T16:07:29.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T04:55:10.746Z","etag":null,"topics":["data","linq","processing","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shadeglare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-15T14:55:09.000Z","updated_at":"2019-04-14T16:07:30.000Z","dependencies_parsed_at":"2022-09-01T04:31:31.164Z","dependency_job_id":null,"html_url":"https://github.com/shadeglare/genum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shadeglare/genum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadeglare%2Fgenum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadeglare%2Fgenum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadeglare%2Fgenum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadeglare%2Fgenum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadeglare","download_url":"https://codeload.github.com/shadeglare/genum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadeglare%2Fgenum/sbom","scorecard":{"id":814913,"data":{"date":"2025-08-11","repo":{"name":"github.com/shadeglare/genum","commit":"f0f9224d3269447793c123d88c1b7c6d311bc234"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/shadeglare/.github/SECURITY.md:1","Info: Found linked content: github.com/shadeglare/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/shadeglare/.github/SECURITY.md:1","Info: Found text in security policy: github.com/shadeglare/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T14:03:35.690Z","repository_id":57249698,"created_at":"2025-08-23T14:03:35.691Z","updated_at":"2025-08-23T14:03:35.691Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31754986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data","linq","processing","typescript"],"created_at":"2025-03-24T02:49:26.915Z","updated_at":"2026-04-13T13:32:47.876Z","avatar_url":"https://github.com/shadeglare.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Genum\n=====\n\n[![Version](http://img.shields.io/npm/v/genum.svg)](https://www.npmjs.org/package/genum)\n[![License](http://img.shields.io/:license-mit-blue.svg)](http://badges.mit-license.org)\n[![Downloads](http://img.shields.io/npm/dm/genum.svg)](https://npmjs.org/package/genum)\n[![Downloads](http://img.shields.io/npm/dt/genum.svg)](https://npmjs.org/package/genum)\n\n\nThe ES Next tools to process data in a LINQ manner.\n\n## Examples\n```ts\nlet output = Enumerable\n  .fromArray([1, 2, 3]) \n  .where(x =\u003e x % 2 === 0)\n  .select(x =\u003e x * 2)\n  .select(x =\u003e `It's ${x}`);\n\nconsole.log(\"example\");\nconsole.log(output.toArray());\n\nlet seq = Enumerable\n  .range(5, 10)\n  .where(x =\u003e x % 2 === 0);\n\nconsole.log(\"range\");\nconsole.log(seq.toArray());\n\nlet empty = Enumerable.empty().toArray();\n\nconsole.log(\"empty\");\nconsole.log(empty);\n\nlet after5 = Enumerable\n  .range(1, 10)\n  .skip(5)\n  .take(2);\n\nconsole.log(\"skip take\");\nconsole.log(after5.toArray());\n\nlet nums = Enumerable.range(1, 10);\nconsole.log(\"range\");\nconsole.log(nums.contains(5));\n\nlet objs1 = Enumerable.fromArray([{ x: 1, y: 2 }, { x: 3, y: 5 }]);\nconsole.log(\"contains\");\nconsole.log(objs1.contains({ x: 3, y: 5 }, (left, right) =\u003e left.x === right.x \u0026\u0026 left.y === right.y));\nconsole.log(objs1.contains({ x: 1, y: 2 }, (left, right) =\u003e left.x === right.x \u0026\u0026 left.y === right.y));\n\nlet grouped = Enumerable\n  .fromArray([{ tag: \"foo\", value: 1 }, { tag: \"foo\", value: 2 }, { tag: \"bar\", value: 3 }])\n  .groupBy(x =\u003e x.tag, x =\u003e x.value, (k, e) =\u003e e)\n\nconsole.log(\"grouped\");\nconsole.log(grouped.toArray());\n\nlet rand = Enumerable\n  .fromGenerator(function*() {\n    yield Math.round(Math.random() * 100);\n    yield Math.round(Math.random() * 100);\n    yield Math.round(Math.random() * 100);\n    yield Math.round(Math.random() * 100);\n  })\n  .groupBy(x =\u003e x % 2, x =\u003e x, (k, e) =\u003e e);\n\nconsole.log(\"grouped random\");\nconsole.log(rand.toArray());\n\nlet many = Enumerable\n  .fromArray([[1, 2, 3], [4, 5, 6]])\n  .selectMany(x =\u003e Enumerable.fromArray(x));\n\nconsole.log(\"many\");\nconsole.log(many.toArray());\n\nlet left = Enumerable.fromArray([{ name: \"foo\" }, { name: \"bar\" }]);\nlet right = Enumerable.fromArray([\n  { name: \"foo\", values: [1, 2] }, \n  { name: \"foo\", values: [2, 3] },\n  { name: \"bar\", values: [2, 3] },\n  { name: \"foobar\", values: [2, 3] },\n]);\n\nlet inner = left\n  .join(\n    right,\n    l =\u003e l.name, \n    r =\u003e r.name, \n    (l, r) =\u003e r);\n\nconsole.log(\"join\");\nconsole.log(inner.toArray());\n\nlet chunk1 = Enumerable.fromArray([1, 2, 3]);\nlet chunk2 = Enumerable.fromArray([4, 5, 6]);\nlet whole = chunk1.concat(chunk2);\n\nconsole.log(\"concat\");\nconsole.log(whole.toArray());\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadeglare%2Fgenum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadeglare%2Fgenum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadeglare%2Fgenum/lists"}