{"id":23896552,"url":"https://github.com/brecert/esnext-utils","last_synced_at":"2025-10-13T04:08:49.541Z","repository":{"id":113036127,"uuid":"319810663","full_name":"brecert/esnext-utils","owner":"brecert","description":"utils made with esnext proposals in mind","archived":false,"fork":false,"pushed_at":"2020-12-14T16:40:27.000Z","size":39,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T07:33:04.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brecert.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-12-09T01:46:42.000Z","updated_at":"2020-12-14T16:40:30.000Z","dependencies_parsed_at":"2023-06-06T15:15:29.828Z","dependency_job_id":null,"html_url":"https://github.com/brecert/esnext-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brecert/esnext-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fesnext-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fesnext-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fesnext-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fesnext-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brecert","download_url":"https://codeload.github.com/brecert/esnext-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fesnext-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013596,"owners_count":26085389,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-04T16:53:18.047Z","updated_at":"2025-10-13T04:08:49.537Z","avatar_url":"https://github.com/brecert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esnext-utils\nutils made with esnext proposals in mind\n\ntodo: create runtime babel tool for using plugins dynamically with the esnext pragma\n\n## Example\n\nWhile using [exca](exca/package.json) and given the following import map.\n\n```json\n{\n  \"imports\": {\n    \"esnext-utils/\": \"https://raw.githubusercontent.com/Brecert/esnext-utils/main/src/\"\n  }\n}\n```\n\nThen\n\n```js\n// @esnext use https://github.com/tc39/proposal-bind-operator\n// @esnext use https://github.com/tc39/proposal-iterator-helpers\n\nimport { repeatedCombinations, repeatedPermutations } from 'esnext-utils/algorithm.js'\nimport { collect, range } from 'esnext-utils/iterator.js'\nimport { comb } from 'esnext-utils/math.js'\nimport { dbg } from 'esnext-utils/util.js'\n\n\ncomb(5, 3);\n// 10\n\n['iced', 'jam', 'plain']::repeatedCombinations(2)::dbg();\n// [\n//   [ 'plain', 'plain' ],\n//   [ 'plain', 'jam' ],\n//   [ 'jam', 'jam' ],\n//   [ 'plain', 'iced' ],\n//   [ 'jam', 'iced' ],\n//   [ 'iced', 'iced' ]\n// ]\n\nrange(1, 3)::repeatedPermutations(2)::collect()::dbg();\n// [\n//   [ 1, 1 ], [ 1, 2 ],\n//   [ 1, 3 ], [ 2, 1 ],\n//   [ 2, 2 ], [ 2, 3 ],\n//   [ 3, 1 ], [ 3, 2 ],\n//   [ 3, 3 ]\n// ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fesnext-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrecert%2Fesnext-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fesnext-utils/lists"}